Skip to main content
Version: 3.x

SetPassword

Sets the user's password from the token sent by email using the RequestPasswordReset mutation.

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

Fields

SetPassword.token ● String scalar

JWT token, required to authenticate.

SetPassword.refreshToken ● String scalar

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

SetPassword.csrfToken ● String scalar

CSRF token required to re-generate access token.

SetPassword.user ● User object

A user instance.

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

DEPRECATED

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

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

Returned by

setPassword mutation


Was this page helpful?