Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix incorrect identifier authorizationCodeRepository #158

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading