Middleware withAuth token is null using Auth0 Provider? #5097
-
Update: The below code works with I am following the Advanced usage configuration for wrapping middleware and keep getting null for the token when printing in the callbacks and the middleware function isn't called at all. Additionally I tried using My goal is to be able to use middleware to restrict access to all pages (eventually specific pages).
middleware.ts
[...nextauth].ts
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Fix was to downgrade Next.js to 12.2.0 |
Beta Was this translation helpful? Give feedback.
Fix was to downgrade Next.js to 12.2.0