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
I trying to implement route protection in my nextjs project according to doc but in am getting this err:
console>
my middleware.ts simply has> export { auth as middleware } from "@/auth";
How to reproduce
in nextjs project create a middleware file and write>
export { auth as middleware } from "@/auth
Expected behavior
the middle ware should work
The text was updated successfully, but these errors were encountered:
Sahil-Gupta584
added
bug
Something isn't working
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
labels
Apr 28, 2025
Environment
Reproduction URL
https://github.com/Sahil-Gupta584/authjs-middleware-issue
Describe the issue
I trying to implement route protection in my nextjs project according to doc but in am getting this err:
console>
my middleware.ts simply has>
export { auth as middleware } from "@/auth";
How to reproduce
in nextjs project create a middleware file and write>
export { auth as middleware } from "@/auth
Expected behavior
the middle ware should work
The text was updated successfully, but these errors were encountered: