Skip to content

Commit 0e81865

Browse files
committed
fix: add docs for clerk adapter
1 parent 89e99e8 commit 0e81865

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • adminforth/documentation/docs/tutorial/09-Plugins

adminforth/documentation/docs/tutorial/09-Plugins/11-oauth.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,10 +486,12 @@ pnpm install @adminforth/clerk-oauth-adapter --save
486486

487487
1. Go to the [Clerk Dashboard](https://dashboard.clerk.com) and open your application.
488488
2. In the left sidebar, go to **Configure****Developers****OAuth Applications**.
489-
3. Click **Add OAuth Application**, give it a name.
490-
4. Copy **Client Secret** from the OAuth application creation modal.
489+
3. Click **Add OAuth Application** and give it a name.
490+
4. Copy the **Client Secret** from the OAuth application creation modal.
491491
5. After copying, Clerk redirects you to the application page, where you can copy the **Client ID** and **Domain**.
492492
6. Add the credentials to your `.env` file:
493+
7. In **Redirect URLs**, add `https://your-domain/oauth/callback` and `http://localhost:3500/oauth/callback`. Include `baseUrl` when your AdminForth app uses it, for example `https://your-domain/base/oauth/callback`.
494+
8. In **Scopes**, check the **openid** checkbox.
493495

494496
```bash
495497
CLERK_CLIENT_ID=your_clerk_client_id

0 commit comments

Comments
 (0)