rotateSessionToken
Rotate the session token for the current user. This mutation allows you to generate a new session token, which can be used to extend the user's session. The new token, its expiration date, and the number of seconds left until it expires are returned in the response, and the old token is invalidated.
Arguments
Name | Type | Description |
---|---|---|
input | EmptyInputType | An empty hash. |
Fields
Name | Type | Description |
---|---|---|
token | String | The new session token. |
valid_until | ISO8601DateTime | The expiration date of the new token. |
seconds_left | Integer | The number of seconds left until the new token expires. |
This mutation requires the user to be authenticated.
rotateSessionToken(
input: RotateSessionTokenInput!
): RotateSessionTokenPayload
Arguments
rotateSessionToken.input
● RotateSessionTokenInput!
non-null input
Parameters for RotateSessionToken
Type
RotateSessionTokenPayload
object
Autogenerated return type of RotateSessionToken.