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

# RefreshToken Object

Refresh JWT token. Mutation tries to take refreshToken from the input. If it fails it will try to take `refreshToken` from the http-only cookie `refreshToken`. `csrfToken` is required when `refreshToken` is provided as a cookie.

```graphql
type RefreshToken {
  token: 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="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

[`tokenRefresh`](/api-reference/authentication/mutations/token-refresh.md) mutation
