Skip to main content

TokenCreate

Result of token create mutation.

type TokenCreate {
token: String
refreshToken: String
csrfToken: String
user: User
twoFactorChallenge: TwoFactorChallenge
accountErrors: [AccountError!]!
}

Fields​

TokenCreate.token ● String scalar​

JWT token for authentication.

TokenCreate.refreshToken ● String scalar​

JWT refresh token.

TokenCreate.csrfToken ● String scalar​

CSRF token for cookie-based auth.

TokenCreate.user ● User object​

The authenticated user.

TokenCreate.twoFactorChallenge ● TwoFactorChallenge object​

Set, with no token, when the password was right and the account owes its 2-step code.

TokenCreate.accountErrors ● [AccountError!]! non-null object​

List of errors that occurred executing the mutation.

Returned By​

tokenCreate mutation ● tokenCreateTwoFactor mutation

Was this page helpful?