Open muezz opened 1 year ago
This is an ongoing issue but they seem to just move on here is another thread that was closed. https://github.com/supabase/auth-helpers/issues/545
I have been scratching my head for days. following the guide provided in that thread creates the session correctly in the confirm/route.ts but once the next redirect happens it has no session sounds like there are a few open bugs about it.
Bug report
Describe the bug
I am trying to set up password reset flow in Next13 with app router. I get the following error in my Vercel logs:
To Reproduce
User enters their email and triggers the flow using:
User receives an email where they click on the button. They are redirected to the following callback url (api). This comes directly from the Supabase+Next13 template
Browser shows an error that it has been redirected too many times and the vercel logs say the error I mentioned above.
If I click on the button in the email again, it takes me to the reset password url but the url has some search params that mention that the auth code has expired or is invalid.
Expected behavior
I expect the callback url to redirect the user to the password reset page.
System information
latest
Additional context
If I am doing anything wrong or if you require more info, please let me know.