Handling the Password Reset for a user by Supabase itself. #15717
Replies: 6 comments
-
|
This is an important required feature for supabse |
Beta Was this translation helpful? Give feedback.
-
|
This will be a very useful add on to Supabase. Looking forward to this update. |
Beta Was this translation helpful? Give feedback.
-
|
I crossed check the things and seems like we really need this kind of feature. |
Beta Was this translation helpful? Give feedback.
-
|
I agree, this sounds great and looks like a much easier way to reset the password |
Beta Was this translation helpful? Give feedback.
-
|
This seems to be a more convenient way for resetting the password. Looking forward to this update. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, it would be great to redirect to a supabase form by default and with an over-ride which does the existing functionality for those that need it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The Problem
The function
supabase.auth.reset_password_email(email)only sends a reset mail to the particular email address mentioned with aPASSWORD_RECOVERYevent but not actually handles the password reset of that account itself, unlike firebase. This functionreset_password_email()should not only just send a password reset mail but also handle password reset with a unique form link specific to that user, so that the particular user can change the password. I hope that clarifies the problem.The Solution
The function
reset_password_email(email)should generate a uniquesupabase form linkwhich would contain a form to reset the password and this link should be sent to the particular mail as a password reset mail. Once the password is reset successfully, user would be redirected back to the main application. This way supabase users wouldn't have to worry about password reset themselves by handling thePASSWORD_RECOVERYevent. They just have to call this function and rest, supabse would handle. I would be more than happy to take up on this issue and contribute to the supabase community!Firebase Authentication have this function
send_password_reset_email()that does the same thing described above, hence as an alternative to Firebase,Supabaseshould also provide this provision!Additional context
Do checkout this Loom:- Firebase Password Reset Flow
Beta Was this translation helpful? Give feedback.
All reactions