updateJWTPayload($sessionHandle, $newJWTPayload)
Parameters
$sessionHandle
- type:
string
- type:
$newJWTPayload
- type:
array
- type:
Returns
void
Throws
- SuperTokensGeneralException
- SuperTokensUnauthorisedException
- 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 the$session
object.