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

# externalRefresh Mutation

Refresh user's access by custom plugin.

```graphql
externalRefresh(
  input: JSONString!
  pluginId: String!
): ExternalRefresh
```

Details

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

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

### Arguments

<a id="input"></a>

#### [`input`](#input) ● [`JSONString!`](/api-reference/miscellaneous/scalars/jsonstring.md)

The data required by plugin to proceed the refresh process.

<a id="plugin-id"></a>

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

The ID of the authentication plugin.

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

### Type

<a id="externalrefresh"></a>

#### [`ExternalRefresh`](/api-reference/authentication/objects/external-refresh.md)

Refresh user's access by custom plugin.
