Skip to content

Commit

Permalink
Merge pull request #158 from wxh06/main
Browse files Browse the repository at this point in the history
docs: fix incorrect identifier `authorizationCodeRepository`
  • Loading branch information
jasonraimondi authored Nov 20, 2024
2 parents d3f1d8d + d9dcf4f commit 1644891
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/docs/authorization_server/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ authorizationServer.enableGrantType("refresh_token");
authorizationServer.enableGrantType({
grant: "authorization_code",
userRepository,
authorizationCodeRepository,
authCodeRepository,
});
// any other grant types you want to enable
```

Note that the Authorization Code grant requires additional repositories: `userRepository` and `authorizationCodeRepository`.
Note that the Authorization Code grant requires additional repositories: `userRepository` and `authCodeRepository`.

### Example: Enabling Multiple Grant Types

Expand All @@ -63,7 +63,7 @@ authorizationServer.enableGrantType("refresh_token");
authorizationServer.enableGrantType({
grant: "authorization_code",
userRepository,
authorizationCodeRepository,
authCodeRepository,
});
```

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/grants/authorization_code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A temporary code that the client will exchange for an access token. The user aut
authorizationServer.enableGrantType({
grant: "authorization_code",
userRepository,
authorizationCodeRepository,
authCodeRepository,
});
```

Expand Down
6 changes: 3 additions & 3 deletions docs/docs/upgrade_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ In v3, `enableGrantType` has been updated for the **"authorization_code"** and *

#### Authorization Code Grant

`AuthorizationCodeGrant` now requires a [AuthorizationCodeRepository](./getting_started/repositories.mdx#auth-code-repository) and a [UserRepository](./getting_started/repositories.mdx#user-repository).
`AuthCodeGrant` now requires a [`authCodeRepository`](./getting_started/repositories.mdx#auth-code-repository) and a [`userRepository`](./getting_started/repositories.mdx#user-repository).

**Before (v2.x):**

Expand All @@ -90,13 +90,13 @@ authorizationServer.enableGrantType("authorization_code");
authorizationServer.enableGrantType({
grant: "authorization_code",
userRepository,
authorizationCodeRepository,
authCodeRepository,
});
```

#### Password Grant

`PasswordGrant` now requires a [UserRepository](./getting_started/repositories.mdx#user-repository).
`PasswordGrant` now requires a [`userRepository`](./getting_started/repositories.mdx#user-repository).

**Before (v2.x):**

Expand Down

0 comments on commit 1644891

Please sign in to comment.