Skip to content

refreshSession

refreshSession(token: String!): RefreshSessionResult!

Exchange a native app's session token for a fresh one. The token a sign-in returns stops being accepted after 15 minutes; send it here — expired or not, and without an Authorization header — and use the returned token from then on. Renews and rotates by the same rules as the auth cookie: each token renews once, and presenting one the session has already moved past signs that session out everywhere. Refused once the session is signed out, revoked, or unused for 30 days; the app should then sign out.

Arguments

tokenString!

Returns

RefreshSessionResult!

See RefreshSessionResult for the full shape.

Try it

Authentication
Example
Query
mutation RefreshSession($token: String!) {
  refreshSession(token: $token) {
    __typename
  }
}
Variables
{}
POST https://go.sessions.website/api/graphql