Skip to main content

extendSession

Requires an authenticated session.

Restarts the expiry of the current session for the full session duration, 7 days unless configured otherwise. Needs the session token header and an active session.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation ExtendSession {
extendSession {
expiresAt
sessionToken
}
}

Response:

{
"data": {
"extendSession": {
"expiresAt": "2025-01-15T00:00:00Z",
"sessionToken": "string"
}
}
}
extendSession: ExtendSessionResponse!

Type​

ExtendSessionResponse object​

The result of extending a session.