Skip to main content

AuthResponse

Result of a successful login or registration: a session token plus the authenticated user.

type AuthResponse {
token: String!
gameTokenId: String!
user: User!
}

Fields

AuthResponse.token ● String! non-null scalar

Opaque session token. Send it on subsequent requests as the Authorization: Bearer <token> header.

AuthResponse.gameTokenId ● String! non-null scalar

Identifier of the underlying session (game_token) row, as a String.

AuthResponse.user ● User! non-null object

The authenticated user.

Returned By

completeLoginLink mutation ● devLogin mutation ● login mutation ● register mutation ● socialLoginComplete mutation