Skip to content

Commit

Permalink
remove leading slash
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Dec 13, 2023
1 parent 432bcf4 commit 92a8bb3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/pages/guides/oauth2-pkce.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ return redirect(url);

## Validate authorization code

Compare the state, and use `validateAuthorizationCode()` to validate the authorization code with the code verifier. This returns an object with an access token, and a refresh token if requested. If the code is invalid, it will throw an [`OAuth2RequestError`](https://oslo.js.org/reference/oauth2/OAuth2RequestError/).
Compare the state, and use `validateAuthorizationCode()` to validate the authorization code with the code verifier. This returns an object with an access token, and a refresh token if requested. If the code is invalid, it will throw an [`OAuth2RequestError`](https://oslo.js.org/reference/oauth2/OAuth2RequestError).

```ts
import { OAuth2RequestError } from "arctic";
Expand Down Expand Up @@ -76,7 +76,7 @@ try {

## Refresh access token

If the OAuth provider supports refresh tokens, `refreshAccessToken()` can be used to get a new access token using a refresh token. This will throw an [`OAuth2RequestError`](https://oslo.js.org/reference/oauth2/OAuth2RequestError/) if the refresh token is invalid.
If the OAuth provider supports refresh tokens, `refreshAccessToken()` can be used to get a new access token using a refresh token. This will throw an [`OAuth2RequestError`](https://oslo.js.org/reference/oauth2/OAuth2RequestError) if the refresh token is invalid.

```ts
import { OAuth2RequestError } from "arctic";
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/guides/oauth2.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ return redirect(url);

## Validate authorization code

Compare the state, and use `validateAuthorizationCode()` to validate the authorization code. This returns an object with an access token, and a refresh token if requested. If the code or your credentials are invalid, it will throw an [`OAuth2RequestError`](https://oslo.js.org/reference/oauth2/OAuth2RequestError/).
Compare the state, and use `validateAuthorizationCode()` to validate the authorization code. This returns an object with an access token, and a refresh token if requested. If the code or your credentials are invalid, it will throw an [`OAuth2RequestError`](https://oslo.js.org/reference/oauth2/OAuth2RequestError).

```ts
import { OAuth2RequestError } from "arctic";
Expand All @@ -66,7 +66,7 @@ try {

## Refresh access token

If the OAuth provider supports refresh tokens, `refreshAccessToken()` can be used to get a new access token using a refresh token. This will throw an [`OAuth2RequestError`](https://oslo.js.org/reference/oauth2/OAuth2RequestError/) if the refresh token is invalid.
If the OAuth provider supports refresh tokens, `refreshAccessToken()` can be used to get a new access token using a refresh token. This will throw an [`OAuth2RequestError`](https://oslo.js.org/reference/oauth2/OAuth2RequestError) if the refresh token is invalid.

```ts
import { OAuth2RequestError } from "arctic";
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/providers/box.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const tokens: BoxTokens = await box.validateAuthorizationCode(code);

## Get user profile

Use the [`/users/me` endpoint](https://developer.box.com/reference/get-users-me/).
Use the [`/users/me` endpoint](https://developer.box.com/reference/get-users-me).

```ts
const response = await fetch("https://api.box.com/2.0/users/me", {
Expand Down

0 comments on commit 92a8bb3

Please sign in to comment.