RefreshToken
Refresh JWT token. Mutation tries to take refreshToken from the input. If it fails it will try to take refreshToken
from the http-only cookie refreshToken
. csrfToken
is required when refreshToken
is provided as a cookie.
type RefreshToken {
token: String
user: User
accountErrors: [AccountError!]! @deprecated
errors: [AccountError!]!
}
Fields
RefreshToken.token
● String
scalar
JWT token, required to authenticate.
RefreshToken.user
● User
object
A user instance.
RefreshToken.accountErrors
● [AccountError!]!
deprecated non-null object
DEPRECATEDThis field will be removed in Saleor 4.0. Use
errors
field instead.
RefreshToken.errors
● [AccountError!]!
non-null object
Returned by
tokenRefresh
mutation