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

add a dedicated redirect url parameter for a password reset flow #97

Conversation

HQHAN
Copy link

@HQHAN HQHAN commented May 29, 2024

What kind of change does this PR introduce?

This PR addresses an issue where the redirectTo in SupaEmailAuth, intended for confirming a signup email, was also used for the password reset confirmation flow. This overlap makes it difficult to implement a follow-up UX flow, such as transitioning to the password reset screen after verifying the redirect URL for a password reset.

What is the current behavior?

Currently, after clicking on the confirmation URL in a password reset confirmation email, the application receives the same redirect URL set for the signup confirmation flow.

What is the new behavior?

With this change, the application will receive a dedicated redirect URL for password reset, distinct from the signup confirmation URL.

Additional context

While the app can subscribe to the AuthChangeEvent.passwordRecovery event to handle the password reset flow, redirecting with the exact deep link URL provides a more straightforward approach.

@HQHAN
Copy link
Author

HQHAN commented May 29, 2024

@dshukertjr can you review this PR ? it seems like I don't have a right to assign reviewers in this repository.

@FatumaA FatumaA requested a review from dshukertjr May 30, 2024 10:07
@FatumaA
Copy link
Collaborator

FatumaA commented May 30, 2024

Thanks for the PR! 😊
Next time, please create an issue first.

@HQHAN
Copy link
Author

HQHAN commented May 31, 2024

closing as I've found an workaround to handle a password reset flow.

@HQHAN HQHAN closed this May 31, 2024
@JavascriptMick
Copy link
Contributor

closing as I've found an workaround to handle a password reset flow.

you wanna maybe share what you did @HQHAN this would be very useful

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 this pull request may close these issues.

4 participants