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

# setPassword Mutation

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

```graphql
setPassword(
  email: String!
  password: String!
  token: String!
): SetPassword
```

Details

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

<a id="arguments"></a>

### Arguments

<a id="email"></a>

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

Email of a user.

<a id="password"></a>

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

Password of a user.

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

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

A one-time token required to set the password.

<a id="type"></a>

### Type

<a id="setpassword"></a>

#### [`SetPassword`](/api-reference/users/objects/set-password.md)

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