|
1 | 1 | # Configuration Reference |
2 | 2 |
|
3 | | -Complete configuration options for the `@harperdb/oauth` plugin. |
| 3 | +Complete configuration options for the `@harperfast/oauth` plugin. |
4 | 4 |
|
5 | 5 | ## Basic Configuration |
6 | 6 |
|
7 | 7 | ```yaml |
8 | | -'@harperdb/oauth': |
9 | | - package: '@harperdb/oauth' |
| 8 | +'@harperfast/oauth': |
| 9 | + package: '@harperfast/oauth' |
10 | 10 | providers: |
11 | 11 | github: |
12 | 12 | clientId: ${OAUTH_GITHUB_CLIENT_ID} |
@@ -112,7 +112,7 @@ The OAuth plugin uses two different redirect configurations that serve distinct |
112 | 112 | **Configuration:** |
113 | 113 |
|
114 | 114 | ```yaml |
115 | | -'@harperdb/oauth': |
| 115 | +'@harperfast/oauth': |
116 | 116 | redirectUri: ${OAUTH_REDIRECT_URI} |
117 | 117 | providers: |
118 | 118 | github: |
@@ -143,7 +143,7 @@ The OAuth plugin uses two different redirect configurations that serve distinct |
143 | 143 | **Configuration:** |
144 | 144 |
|
145 | 145 | ```yaml |
146 | | -'@harperdb/oauth': |
| 146 | +'@harperfast/oauth': |
147 | 147 | postLoginRedirect: ${OAUTH_POST_LOGIN_REDIRECT} # Default: '/' |
148 | 148 | ``` |
149 | 149 |
|
@@ -202,7 +202,7 @@ window.location.href = '/oauth/github/login?redirect=' + encodeURIComponent('/ap |
202 | 202 | **Recommended:** Configure `postLoginRedirect` with your SPA route including the fragment: |
203 | 203 |
|
204 | 204 | ```yaml |
205 | | -'@harperdb/oauth': |
| 205 | +'@harperfast/oauth': |
206 | 206 | postLoginRedirect: '/app#home' # Always land on SPA home view |
207 | 207 | ``` |
208 | 208 |
|
@@ -240,8 +240,8 @@ if (state.view) { |
240 | 240 | ### Complete Redirect Configuration Example |
241 | 241 |
|
242 | 242 | ```yaml |
243 | | -'@harperdb/oauth': |
244 | | - package: '@harperdb/oauth' |
| 243 | +'@harperfast/oauth': |
| 244 | + package: '@harperfast/oauth' |
245 | 245 | redirectUri: ${OAUTH_REDIRECT_URI} # OAuth callback: https://app.example.com/oauth/callback |
246 | 246 | postLoginRedirect: ${OAUTH_POST_LOGIN_REDIRECT} # After login: /dashboard |
247 | 247 | debug: false |
@@ -283,7 +283,7 @@ See the [Lifecycle Hooks documentation](./lifecycle-hooks.md) for complete detai |
283 | 283 |
|
284 | 284 | ```javascript |
285 | 285 | // resources.js |
286 | | -import { registerHooks } from '@harperdb/oauth'; |
| 286 | +import { registerHooks } from '@harperfast/oauth'; |
287 | 287 | import { hooks } from './src/lib/oauthHooks.js'; |
288 | 288 |
|
289 | 289 | registerHooks(hooks); |
@@ -342,8 +342,8 @@ DEBUG_ALLOWED_IPS= |
342 | 342 | ## Complete Example |
343 | 343 |
|
344 | 344 | ```yaml |
345 | | -'@harperdb/oauth': |
346 | | - package: '@harperdb/oauth' |
| 345 | +'@harperfast/oauth': |
| 346 | + package: '@harperfast/oauth' |
347 | 347 | debug: false |
348 | 348 | providers: |
349 | 349 | github: |
|
0 commit comments