You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests use custom fixtures for authentication. The `authenticatedPage` fixture handles login automatically.
237
+
225
238
### Example Test
226
239
227
240
```typescript
@@ -278,7 +291,10 @@ git push origin v0.x.x
278
291
279
292
### Authentication Not Working
280
293
281
-
-**Development**: Ensure OIDC mock is running (`pnpm oidc`)
294
+
-**Development**:
295
+
- Ensure OIDC mock is running (`pnpm oidc`) or start the full stack with `pnpm dev`
296
+
- Dev provider issues refresh tokens unconditionally and uses a short AccessToken TTL (15s) to exercise the refresh flow
297
+
- If you see origin errors (403), ensure `BETTER_AUTH_URL` matches the port you use (default `http://localhost:3000`) or include it in `TRUSTED_ORIGINS`
Copy file name to clipboardExpand all lines: README.md
+17-13Lines changed: 17 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,8 @@ pnpm dev
51
51
# Application will be available at http://localhost:3000
52
52
```
53
53
54
+
Authentication: the dev stack also starts a local OIDC provider (on :4000) and MSW mock API (on :9090). The `/signin` page initiates the OIDC flow and redirects back to `/catalog` on success.
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
0 commit comments