updateJWTPayload(String sessionHandle, Map<String, Object> newJWTPayload)
Parameters
sessionHandle
newJWTPayload
- description: This information is stored in the JWT sent to the frontend, so it should not contain any sensitive information. The values in the map can be any of the primitive types, an
Object[]
orMap<String, Object>
.
- description: This information is stored in the JWT sent to the frontend, so it should not contain any sensitive information. The values in the map can be any of the primitive types, an
Returns
void
Throws
- GeneralException
- UnauthorisedException
- This is thrown if the current session was revoked or has expired.
Additional information
- The JWT updated payload information for that session will be reflected only when that session has been refreshed.
- If you want to update the JWT payload for the current session, please use the
updateJWTPayload
function in thesession
object.