Replies: 1 comment
-
Did you set the redirect URL inside your Supabase Dashboard? You can check this here https://supabase.com/dashboard/project/_/auth/url-configuration |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I'm implementing Supabase auth in Next.js 14 following this guide.
I have the exact same setup, the same middleware, server and client components etc.
The only difference is I'm using /auth/confirm instead of /auth/callback and I'm using Magic Link and Google Auth instead of username/password.
Issue:
I keep being redirected to https://localhost:3000 despite having correctly set the production URLs in the Supabase dashboard.
https://localhost:3000
.https://localhost:3000/error?code=...
.Setup Details:
Magic Link in
auth/route.ts
:Google Auth in a client component:
auth/confirm/route.ts:
What could be the issue here? Does the
/auth/confirm/route.ts
route need to be handled differently for magic link and Google auth?Any insights would be greatly appreciated. I am really stuck here and have searched through tons of posts and tried everything but could not get it to work.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions