Closed renardeinside closed 1 year ago
I'm having the same issue
Possible duplicate of https://github.com/supabase/auth-ui/issues/72
I downgraded to @0.2.1 and still doesn't work
As workaround, I used a useEffect
to watch the session changes to do the redirect
useEffect(() => {
if (session) {
route.push("/admin");
}
}, [session]);
Hey @renardeinside I think the redirectTo expects the full URL to redirect to which should include the Site URL in your supabase dashboard. So for example, if your site url on supabase is 'http://localhost:5173', your redirectTo should be something like 'http://localhost:5173/me' for it to work.
If your redirectTo prop is a different domain like 'http://localhost:3000/me', it would redirect to the Site URL which you setup on your supabase dashboard.
Bug report
Describe the bug
I'm trying to setup an auth with Supabase and supabase auth. Unfortunately the
redirectTo
argument seems either ignored or works not as expected.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
With email, it remains the same. With github, it adds a # to the end of the URL, but none of this makes a proper redirect.
Expected behavior
Redirect happens.
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
Add any other context about the problem here.