# resetUserPassword

> The `resetUserPassword` mutation. Returns `AccessToken`.

Source: https://docs.gastrogate.io/docs/api/mutations/resetUserPassword

```graphql
resetUserPassword(
  password: String!
  token: String!
): AccessToken
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `password` | [`String`](https://docs.gastrogate.io/docs/api/types/String.md)! |  |
| `token` | [`String`](https://docs.gastrogate.io/docs/api/types/String.md)! |  |

## Returns

[`AccessToken`](https://docs.gastrogate.io/docs/api/types/AccessToken.md)

## Example

```graphql
mutation ResetUserPassword($password: String!, $token: String!) {
  resetUserPassword(password: $password, token: $token) {
    expires
    token
    parseToken
  }
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { resetUserPassword(...) { __typename } }"}'
```
