Skip to main content

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 miscellaneous

JWT token, required to authenticate.

RefreshToken.user ● User object users

A user instance.

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

DEPRECATED

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

RefreshToken.errors ● [AccountError!]! non-null object users

Returned By

tokenRefresh mutation