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
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
exportasyncfunctionGET(request: NextRequest){constrequestUrl=newURL(request.url)constcode=requestUrl.searchParams.get('code')if(code){constsupabase=createRouteHandlerClient({ cookies })awaitsupabase.auth.exchangeCodeForSession(code)}returnNextResponse.redirect(`${requestUrl.origin}/reset-password`)}
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
OS: macOS
Browser: Arc (Chromium)
Version of supabase-js: latest
Additional context
If I am doing anything wrong or if you require more info, please let me know.
The text was updated successfully, but these errors were encountered:
This is an ongoing issue but they seem to just move on here is another thread that was closed. #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:
[AuthApiError]: invalid request: both auth code and code verifier should be non-empty
To Reproduce
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.
The text was updated successfully, but these errors were encountered: