Replies: 2 comments 4 replies
-
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.
-
I am having the same problem when using inviteUserByEmail. I am running the nextjs app on a lan based development server in development mode served via NGINX proxy server I am using the same route.ts code as fdarkaou my page.tsx file
In Supabase dashboard: SiteURL is The invitation email Template code is The email link appears appears to be correctly formatted but the url received in route.ts is Like fdarkaou I have spent hours 'trawling' for a solution. I fear there is something fundamental I simply don't understand. Thank you |
Beta Was this translation helpful? Give feedback.
-
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