-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
next auth middleware server error #3802
Comments
Thanks for reporting. there has been a regression on vercel/next.js#33141 in Next.js. For now, please use I also pushed a minor fix, please make sure you are on at least |
Hi @balazsorban44, thank you for your response. Unfortunately, still happening to me.
Error:
package.json
Cheers, |
That's odd, the official example is deployed with it https://github.com/nextauthjs/next-auth-example You can see it in action on https://next-auth-example.vercel.app/me I would need a reproduction. Could you please open a separate bug report with your attached code? I'll do some digging myself. |
|
Unfortunately, I cannot find an issue, tested all the different initialization methods listed here: https://github.com/nextauthjs/next-auth/blob/main/packages/dev-app/pages/middleware-protected/_middleware.js So all I can say is just make sure you are actually on |
@balazsorban44 I've switched to the middleware you export and placed it into the folder (route group) I want to protect. It's working pretty well so far. Thank you! Not sure what was wrong with my previous implementation, maybe my |
We need to use this until Next v12.0.11, because of nextauthjs/next-auth#3802 (comment)
Description 🐜
getting
Server error There is a problem with the server configuration. Check the server logs for more information.
. there isn't any console information.server logs
Is this a bug in your own project?
Yes
How to reproduce ☕️
I'm using nx:13.7.2, nextjs 12.0.10, next-auth: 4.2.1. and the code above
Screenshots / Logs 📽
Environment 🖥
Contributing 🙌🏽
Yes, I am willing to help solve this bug in a PR
The text was updated successfully, but these errors were encountered: