Dooes magic link also support the redirect url? I ...
# help
p
Dooes magic link also support the redirect url? I can't figure out setting up the
Site URL
and
Additional Redirect URLs
so it works both on localhost and live. Anybody knows how to do that?
Copy code
const { user, session, error } = await supabase.auth.signIn({
  provider: 'github'
}, {
  redirectTo: 'https://example.com/welcome'
})
s
Yes this works with magic link too
p
so in the
Site URL
I have our main domain, say
https://www.example.com
and in the
Additional Redirect URLs
I entered
https://www.example.com/account,http://localhost:3000/account
because after login I wanna go to
/account
. I set the redirectTo value with env variables. But this does not work in my case, it gets always to the
Site URL
value, the main url. What am I missing?
hmm seems to work now, talking about a problem really does help 😄