Skip to main content

Versions

Updated JWT Token to include user properties such as groupId and isAdmin

We updated the body that is sent to the https://api.velt.dev/v1/auth/token/get JWT Token endpoint to include user properties such as groupId and isAdmin. The groupId field is used to validate that the groupId provided in the identify call is the same as the one passed to the JWT Token. The isAdmin field is used to set a user as an admin.

Option to force re-login user on identify call

By default when you identify a user, we maintain the user auth in the browser unless you explicitly change the logged in user with another identify call. If you are granting a user additional access or have changed some metadata about the user and want those changes to be reflected immediately, then you should re-call the identify method with forceReset set to true.