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
Create a `middleware.ts` file in your project root to handle authentication:
83
83
84
-
```bash
85
-
import { AsgardeoNext } from '@asgardeo/nextjs';
86
-
import { NextRequest } from 'next/server';
87
-
88
-
const asgardeo = new AsgardeoNext();
84
+
> **Note on Next.js 16 compatibility:**
85
+
> Next.js 16 renamed `middleware.ts` to `proxy.ts`. The `@asgardeo/nextjs` SDK currently supports the `middleware.ts` export pattern. Support for Next.js 16's `proxy.ts` may be added in a future SDK release.
0 commit comments