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

✨ feat: implement password recovery flow #47

Merged
merged 18 commits into from
May 3, 2024

Conversation

marvin-splitt
Copy link
Contributor

@marvin-splitt marvin-splitt commented Apr 24, 2024

Since resetting the user password manually was quite annoying, I added a password recovery flow. This is divided into two steps. First, the user visits the /forgot-password page, where they must insert their email address. After submitting it, they will get a reset link from supabase with another redirect URL called /reset-password. This page is then responsible for asking for a new password and uses the supabase auth session set by the reset link to authenticate the password reset. After the new password is successfully submitted, the user stays authenticated, and we redirect them to their dashboard.

@marvin-splitt marvin-splitt self-assigned this Apr 24, 2024
@marvin-splitt marvin-splitt linked an issue Apr 24, 2024 that may be closed by this pull request
Copy link

vercel bot commented Apr 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
keeep ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 1, 2024 9:00am

@marvin-splitt marvin-splitt added the enhancement New feature or request label Apr 24, 2024
@marvin-splitt marvin-splitt added this to the v1.0 milestone Apr 24, 2024
@marvin-splitt marvin-splitt marked this pull request as ready for review April 24, 2024 13:43
Copy link
Contributor

@konstantinmuenster konstantinmuenster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall! Some minor things we could fix / improve 💪

Copy link
Contributor

@konstantinmuenster konstantinmuenster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@marvin-splitt marvin-splitt merged commit 9a0b71a into main May 3, 2024
4 checks passed
@marvin-splitt marvin-splitt deleted the 43-implement-password-recovery-flow branch May 3, 2024 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement password recovery flow
2 participants