Skip to main content

SetPassword Object

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

Triggers the following webhook events:

  • ACCOUNT_CONFIRMED (async): Called if the account was not previously confirmed.
  • CUSTOMER_UPDATED (async): Called if a customer account was confirmed.
  • STAFF_UPDATED (async): Called if a staff account was confirmed.
type SetPassword {
token: String
refreshToken: String
csrfToken: String
user: User
accountErrors: [AccountError!]! @deprecated
errors: [AccountError!]!
}

Fields​

token ● String​

JWT token, required to authenticate.

refreshToken ● String​

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

csrfToken ● String​

CSRF token required to re-generate access token.

user ● User​

A user instance.

errors ● [AccountError!]!​

Show deprecatedHide deprecated

accountErrors ● [AccountError!]!​

DEPRECATED

Use errors field instead.

Returned By​

setPassword mutation