From d9dcf4f3c9bd74249edd28e29f5e3dda4bb77b08 Mon Sep 17 00:00:00 2001 From: Xinhe Wang Date: Sun, 17 Nov 2024 04:24:09 +0000 Subject: [PATCH] docs: fix incorrect identifier `authorizationCodeRepository` --- docs/docs/authorization_server/index.mdx | 6 +++--- docs/docs/grants/authorization_code.mdx | 2 +- docs/docs/upgrade_guide.md | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/docs/authorization_server/index.mdx b/docs/docs/authorization_server/index.mdx index 2c90bb7d..a9d58d9a 100644 --- a/docs/docs/authorization_server/index.mdx +++ b/docs/docs/authorization_server/index.mdx @@ -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 @@ -63,7 +63,7 @@ authorizationServer.enableGrantType("refresh_token"); authorizationServer.enableGrantType({ grant: "authorization_code", userRepository, - authorizationCodeRepository, + authCodeRepository, }); ``` diff --git a/docs/docs/grants/authorization_code.mdx b/docs/docs/grants/authorization_code.mdx index dea31f70..8ea22ba8 100644 --- a/docs/docs/grants/authorization_code.mdx +++ b/docs/docs/grants/authorization_code.mdx @@ -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, }); ``` diff --git a/docs/docs/upgrade_guide.md b/docs/docs/upgrade_guide.md index 778e1c48..60416919 100644 --- a/docs/docs/upgrade_guide.md +++ b/docs/docs/upgrade_guide.md @@ -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):** @@ -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):**