Closed amlan-roy closed 6 months ago
Apparently, the session cookie is not being passed to the middleware from the login page in deployed environments. This is really confusing because the cookies are passed correctly in dev env.
Moreover, the cookies are being set correctly, but not passed.
I suspect that this has something to do with Edge functions (middleware runs on edge) behaviour of Nextjs/Vercel.
Closing this ticket because added a temp fix. Tracking this issue in the ticket: https://github.com/amlan-roy/resume-craft/issues/91
Describe the bug
When we log in in a fresh window, logging in for the first time does not redirect to home page.
Steps To Reproduce
https://resume-craft-ten.vercel.app/login
Expected result
Should redirect in the first login attempt itself
Actual result
Does not login in the first attempt
Are you willing to contribute to this issue?
Yes
Environment Information
Desktop: