Skip to content

Commit 1644891

Browse files
Merge pull request #158 from wxh06/main
docs: fix incorrect identifier `authorizationCodeRepository`
2 parents d3f1d8d + d9dcf4f commit 1644891

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/docs/authorization_server/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ authorizationServer.enableGrantType("refresh_token");
3838
authorizationServer.enableGrantType({
3939
grant: "authorization_code",
4040
userRepository,
41-
authorizationCodeRepository,
41+
authCodeRepository,
4242
});
4343
// any other grant types you want to enable
4444
```
4545

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

4848
### Example: Enabling Multiple Grant Types
4949

@@ -63,7 +63,7 @@ authorizationServer.enableGrantType("refresh_token");
6363
authorizationServer.enableGrantType({
6464
grant: "authorization_code",
6565
userRepository,
66-
authorizationCodeRepository,
66+
authCodeRepository,
6767
});
6868
```
6969

docs/docs/grants/authorization_code.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A temporary code that the client will exchange for an access token. The user aut
1212
authorizationServer.enableGrantType({
1313
grant: "authorization_code",
1414
userRepository,
15-
authorizationCodeRepository,
15+
authCodeRepository,
1616
});
1717
```
1818

docs/docs/upgrade_guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ In v3, `enableGrantType` has been updated for the **"authorization_code"** and *
7676

7777
#### Authorization Code Grant
7878

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

8181
**Before (v2.x):**
8282

@@ -90,13 +90,13 @@ authorizationServer.enableGrantType("authorization_code");
9090
authorizationServer.enableGrantType({
9191
grant: "authorization_code",
9292
userRepository,
93-
authorizationCodeRepository,
93+
authCodeRepository,
9494
});
9595
```
9696

9797
#### Password Grant
9898

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

101101
**Before (v2.x):**
102102

0 commit comments

Comments
 (0)