> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/users/llms.txt)
> Source: https://docs.saleor.io/api-reference/users/objects/set-password

# SetPassword Object

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

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

<a id="fields"></a>

### Fields

<a id="token"></a>

#### [`token`](#token) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

JWT token, required to authenticate.

<a id="refresh-token"></a>

#### [`refreshToken`](#refresh-token) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

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

<a id="csrf-token"></a>

#### [`csrfToken`](#csrf-token) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

CSRF token required to re-generate access token.

<a id="user"></a>

#### [`user`](#user) ● [`User`](/api-reference/users/objects/user.md)

A user instance.

<a id="errors"></a>

#### [`errors`](#errors) ● [`[AccountError!]!`](/api-reference/users/objects/account-error.md)

Show deprecatedHide deprecated

<a id="account-errors"></a>

#### [`accountErrors`](#account-errors) ● [`[AccountError!]!`](/api-reference/users/objects/account-error.md)

DEPRECATED

Use `errors` field instead.

<a id="returned-by"></a>

### Returned By

[`setPassword`](/api-reference/users/mutations/set-password.md) mutation
