Type of the device.
Type of the location.
Options object.
It should not be modified after, as it will be used without being cloned.
Create user session.
JWT payload.
The object will be modified in-place.
Sign options.
Provided properties will override the default ones.
User session creation context.
Context won't be cloned, therefore you should not update it after operation finishes.
Refresh token ttl. When given, will have priority over the default one.
Session access and refresh tokens.
Deletes all of the user sessions.
Subject (i.e. user/account id).
Payload of the access token.
Access token belongs to session from where invalidation occurs.
Parameter is optional, so that an admin can invalidate all user sessions without having his access token.
Notice that in case jwtPayload
is not provided, access token ttl will be taken from default {@link JwtUserSessionManagerOptions.signOptions.expiresIn},
in order to invalidate all issued before access tokens.
Number of the deleted sessions.
Delete one user session associated with refresh token.
Subject (i.e. user/account).
Refresh token.
Payload of the access token.
When provided will also invalidate this access token.
Parameter is optional, so that admins that may not have access token can invalidate user session.
Read JWT payload from access token.
Token will be validated before being decoded and it's payload extracted.
Access token.
Verify options.
Provided properties will override the default ones.
JWT access token payload.
Read all the active sessions of the subject
.
Note! Session objects are returned directly from storage, without being cloned,
therefore you are not advised to modify them after this operation.
Subject from the JWT (i.e. user/account id).
Refresh tokens mapped to session metadata.
Restricts access to all user sessions from all the access tokens issued before.
Notice that user sessions won't be deleted, they can be accessed with access tokens
that can be obtained later with the refresh tokens of these sessions.
Subject.
Ttl of the access token.
Restricts access to user session from the access token having jwtPayload
.
Notice that user session won't be deleted, it can be accessed with other access tokens.
Access token to be invalidated.
Update user access token session.
Refresh token.
Payload for the newly access token.
The object will be modified in-place.
Sign options. Provided properties will override the default ones.
Update access token context.
JWT access token.
Stateless implementation of the user sessions using JWT as exchange mechanism.