Clientside password reset
Evening! I was wondering if anyone knows how I can manage clientside password resets (with react-router HashRouter).
It seems the only way to request a password reset is via
This discussion kind of confirms this https://github.com/supabase/supabase/pull/7443#discussion_r907523385
I have played around with using it on the client but the
I've read a little about listening for the
Any pointers would be great...
It seems the only way to request a password reset is via
supabase.auth.api.resetPasswordForEmail which I'm assuming (since it's an api method) should only be called on a server.This discussion kind of confirms this https://github.com/supabase/supabase/pull/7443#discussion_r907523385
I have played around with using it on the client but the
redirectsTo wont honour a hashed url (http://localhost/#/password-reset). It just redirects to the route of my app. It works fine if I take the # out.I've read a little about listening for the
PASSWORD_RESET event in supabase.auth.onAuthStateChange and then redirecting, but I've not managed to get that working yet. Surely this isn't the official solution?Any pointers would be great...