CreateToken Object
Create JWT token.
type CreateToken {
token: String
refreshToken: String
csrfToken: String
user: User
accountErrors: [AccountError!]! @deprecated
errors: [AccountError!]!
}
Fields
CreateToken.token
● String
scalar miscellaneous
JWT token, required to authenticate.
CreateToken.refreshToken
● String
scalar miscellaneous
JWT refresh token, required to re-generate access token.
CreateToken.csrfToken
● String
scalar miscellaneous
CSRF token required to re-generate access token.
CreateToken.user
● User
object users
A user instance.
CreateToken.accountErrors
● [AccountError!]!
deprecated non-null object users
DEPRECATED
This field will be removed in Saleor 4.0. Use errors
field instead.
CreateToken.errors
● [AccountError!]!
non-null object users
Returned By
tokenCreate
mutation