astriaai / headshots-starter

https://headshots-starter.vercel.app
MIT License
3.79k stars 640 forks source link

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

Open maxchiron opened 11 months ago

maxchiron commented 11 months ago

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

Marfuen commented 11 months ago

@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 commented 11 months ago

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 commented 11 months ago

I have the same problem

sonnylazuardi commented 11 months ago

+1 on having the same issue

sonnylazuardi commented 11 months ago

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 commented 11 months ago

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

iharshgor commented 4 months ago

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>

image