Skip to main content

SetPassword Object

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 miscellaneous

JWT token, required to authenticate.

SetPassword.refreshToken ● String scalar miscellaneous

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

SetPassword.csrfToken ● String scalar miscellaneous

CSRF token required to re-generate access token.

SetPassword.user ● User object users

A user instance.

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

DEPRECATED

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

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

Returned By

setPassword mutation