Skip to content
redeemAuthCodeMutation
redeemAuthCode(email: String!, code: String!): SignInResult!

Redeem a 6-digit auth code and sign the user in. Returns the created or signed-in user, the JWT token, and the redirect URL stored on the code. Sets the auth cookie on success — except for codes that were issued with a business pin, which return a business-scoped token without touching the cookie session.

Arguments

emailString!
codeString!

Returns

SignInResult!

See SignInResult for the full shape.

Try it

Example
Query
mutation RedeemAuthCode($email: String!, $code: String!) {
  redeemAuthCode(email: $email, code: $code) {
    __typename
  }
}
Variables
{}
POST https://go.sessions.website/api/graphql
redeemAuthCode