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 |
forceReset
set to true
.