Skip to main content
Version: 3.x


Create JWT token.

type CreateToken {
token: String
refreshToken: String
csrfToken: String
user: User
accountErrors: [AccountError!]! @deprecated
errors: [AccountError!]!


CreateToken.token ● String scalar

JWT token, required to authenticate.

CreateToken.refreshToken ● String scalar

JWT refresh token, required to re-generate access token.

CreateToken.csrfToken ● String scalar

CSRF token required to re-generate access token.

CreateToken.user ● User object

A user instance.

CreateToken.accountErrors ● [AccountError!]! deprecated non-null object


This field will be removed in Saleor 4.0. Use errors field instead.

CreateToken.errors ● [AccountError!]! non-null object

Returned by

tokenCreate mutation

Was this page helpful?