Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password reset only works as a magic link #11

Closed
maleksal opened this issue Nov 30, 2023 · 1 comment
Closed

Password reset only works as a magic link #11

maleksal opened this issue Nov 30, 2023 · 1 comment

Comments

@maleksal
Copy link
Contributor

According to the Supabase documentation on password reset, a redirect URL must be provided for users to be directed to the updated password page after clicking the reset link. However, there's a limitation in the Auth component initialization, as it only accepts a redirecting URL reserved for auth callbacks.

I think it can be solved by adding a new prop passwordResetRedirectURL for the Auth component that will be supplied as a redirect URL for resetting the password.

https://supabase.com/docs/guides/auth/auth-password-reset

  • Send email for password reset using .resetPasswordForEmail while providing a redirectTo parameter
  • Email link will work as a magic link and log the user in then take them to the url specified in the redirectTo parameter
  • Create form to update the password and call the .updateUser method with the new password
@xiaoluoboding
Copy link
Member

checkout v0.3.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants