Skip to main content

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

NameTypeDescription
inputEmptyInputTypeAn empty hash.

Fields

NameTypeDescription
tokenStringThe new session token.
valid_untilISO8601DateTimeThe expiration date of the new token.
seconds_leftIntegerThe 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.