Skip to content

Commit

Permalink
docs(custom-providers): correct method name (#1478)
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli authored Mar 10, 2024
1 parent 08e6b8b commit 052e6b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/guides/oauth/custom-providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ await oauth2Client.validateAuthorizationCode<{

## Refresh access tokens

Use [`OAuth2Client.validateAuthorizationCode()`](https://oslo.js.org/reference/oauth2/OAuth2Client/refreshAccessToken) to refresh an access token. The API is similar to `validateAuthorizationCode()` and it also throws an `OAuth2RequestError` on error responses.
Use [`OAuth2Client.refreshAccessToken()`](https://oslo.js.org/reference/oauth2/OAuth2Client/refreshAccessToken) to refresh an access token. The API is similar to `validateAuthorizationCode()` and it also throws an `OAuth2RequestError` on error responses.

```ts
try {
Expand Down

0 comments on commit 052e6b2

Please sign in to comment.