> For the complete documentation index, see [llms.txt](https://pqko.gitbook.io/pqko-discord/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pqko.gitbook.io/pqko-discord/oauth2/refreshing-token.md).

# Refreshing Token

And of course we have minimized the amount of code you require.

```javascript
OAuth2.refreshToken(refresh_token).then((x) => {
    console.log(x)
}).catch((x) => {
    console.log(x)
})
```

You will get the same response as the code validation.
