Hello, I am trying to implement the password reset flow using PKCE. On the docs it is telling me that a PASSWORD_RECOVERY event will be fired after the link in the email is clicked. I am using NextJS.
I checked that the type is correct by printing it out on the /api/auth/confirm endpoint and it is correctly set as "recovery". But, after calling the verifyOTP function with the received token_hash and type only a SIGNED_IN event gets fired. I am trying to use the events to change the page into a form where it accepts the new password the user is trying to set.
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.