> For the complete documentation index, see [llms.txt](https://docs.bond.network/developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bond.network/developers/bond-api/authentication/refresh-jwt.md).

# Refresh JWT

After your `accessToken` expires post the 1-hour mark, you won't need to go through the entire authentication process again. Instead, follow these simple steps:

1. **Use the `refreshToken`**: Present the `refreshToken` (which you received during the initial authentication) to our designated endpoint.
2. **Receive a new `accessToken`**: On successful validation of your `refreshToken`, our system will immediately provide a new `accessToken` for your continued use.

### API Details

{% tabs %}
{% tab title="Request" %}

```graphql
mutation Refresh($request: RefreshRequest!) {
  refresh(request: $request) {
    accessToken
    refreshToken
  }
}
```

{% endtab %}

{% tab title="Response" %}

```json
{
  "data": {
    "refresh": {
      "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.RB_WVMfPqrIynyd42-ALfEfdHBjfdLbrvl-JUM-FJmM",
      "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.YNWmW_MYy5SymuqzbVeWjhHA9tsq0VLa5lObrF_q6T0"
    }
  }
}
```

{% endtab %}
{% endtabs %}
