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

[bug] email magic link Redirect to localhost:3000 after Vercel deploying #64

Open
maxchiron opened this issue Oct 11, 2023 · 7 comments

Comments

@maxchiron
Copy link

As the tiltle describing, after the vercel deploying, email magic link redirect to localhost:3000, so it won't work.

@Marfuen
Copy link
Contributor

Marfuen commented Oct 11, 2023

@maxchiron Make sure you set the auth url in the Supabase Auth Redirect urls to your domain. It should be in the readme under the Magic Link section

@markbrewster
Copy link

I figured out I need to change the default value 'site URL' here:
image

However, I do not know what URL to put in there. Putting the app homepage there just leads me in circles. So where should the link go to?

@14790897
Copy link

I have the same problem

@sonnylazuardi
Copy link

+1 on having the same issue

@sonnylazuardi
Copy link

sonnylazuardi commented Oct 13, 2023

Found the solution copy and paste this to email template > magic link after changing the URL

<h2>Magic Link</h2>
<p>Follow this link to login:</p>
<p><a href="{{ .SiteURL }}/auth/confirm?token_hash={{ .TokenHash }}&type=email">Log In</a></p>```

@markbrewster
Copy link

Amazing, thank you @sonnylazuardi that fixed it for me!

@iharshgor
Copy link

iharshgor commented May 21, 2024

#111 Helped me

I'm getting 404 error using the following template

<h2>Magic Link</h2>
<p>Follow this link to login:</p>
<p><a href="{{ .SiteURL }}/auth/confirm?token_hash={{ .TokenHash }}&type=email">Log In</a></p>
  • Generated link in email https://headshots-starter-clone-wx9z.vercel.app/auth/confirm?token_hash=a6b755c63a7c18e469499dfd6790775f765ce101f82dee3a98ad05a9&type=email

image

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

No branches or pull requests

6 participants