Release Notes
June 10 2024
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
.
Field | Required | Description |
---|---|---|
apiKey | Yes | Velt API Key |
authToken | Yes | Auth Token from the Velt console |
userId | Yes | Unique user id of the user |
userProperties.groupId | No | If groupId is provided, it will be validated with the groupId used in the identify call. Recommended if you are setting groupIds |
userProperties.isAdmin | No | Set to true if you want to set user as admin . This is the only way to set a user as an admin User |
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
.
Was this page helpful?