UpdateJWTPayload(newJWTPayload map[string]interface{}) error
Parameters
newJWTPayload
- description: This information is stored in the JWT sent to the frontend. So it should not contain sensitive information. The values in the map can be any of the primitive types, an
[]interface{}
ormap[string]interface{}
.
- description: This information is stored in the JWT sent to the frontend. So it should not contain sensitive information. The values in the map can be any of the primitive types, an
Returns
- GeneralError
- UnauthorisedError
- This is thrown if the current session was revoked or has expired.
- When this is thrown, all the relevant auth cookies are cleared by this function call, so you can redirect the user to a login page.