Trying to get password reset to work. I can see th...
# help
w
Trying to get password reset to work. I can see the GET to the supabase.co/auth/v1/verify but the redirect is stripping out the #access_token=x&refresh_token=y&expires_in=z&token_type=bearer&type=recovery as described at https://supabase.io/docs/reference/dart/reset-password-email - also, what's with the # - should be a ? for proper parsing...?
n
I have the exact same issue. The documentation seems to be out of date 😦
o
In JavaScript land at least this works
Copy code
js
// Handle redirect when you've clicked email link to reset your password.
auth.onAuthStateChange((eventName, session) => {            
  if (eventName === 'PASSWORD_RECOVERY') {
    // do something here
    history.push('/account/reset-password')
  }
})
w
So you listen for the event and then use the regular access token to send the updated password?
Kind of big thing to be missing from the docs. 😬
n
Thanks oskar and wiverson , got it working on my side