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

redirectTo prop is used for both email magic link and Google auth #263

Open
Fashizel opened this issue May 15, 2024 · 0 comments
Open

redirectTo prop is used for both email magic link and Google auth #263

Fashizel opened this issue May 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Fashizel
Copy link

Seems like the 'redirectTo' is used to fill the redirect url for both email magic link and Google auth (or any other auth for that matter) which seems like a bug.

In my NextJs application I need the redirect to go to a confirm route which needs to verify the OTP while the google auth redirect need to exchange the code to exchange the code for session, which means different redirect url

To Reproduce

Use supabase auth ui with both email magic link and google

Expected behavior

Allow to use different redirect urls depends on the login method used.

System information

NextJS application

@Fashizel Fashizel added the bug Something isn't working label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant