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.
Applied directives
@webhookEventsInfo(asyncEvents: [ACCOUNT_CONFIRMED, CUSTOMER_UPDATED, STAFF_UPDATED], syncEvents: [])
type SetPassword {
token: String
refreshToken: String
csrfToken: String
user: User
accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [AccountError!]!
}
Fields
token
token · String
JWT token, required to authenticate.
refreshToken
refreshToken · String
JWT refresh token, required to re-generate access token.
csrfToken
csrfToken · String
CSRF token required to re-generate access token.
user
user · User
A user instance.
accountErrors
accountErrors · [AccountError!]!
errors
errors · [AccountError!]!
Used by
Schema: Saleor 3.23.43. Download SDL.