Join Discord
Powered by
I guess it has been asked 1000 times, but I can't ...
# help
w
wiesson
01/26/2022, 1:39 PM
I guess it has been asked 1000 times, but I can't find it 🙈 I'd like to set the login / redirect URI dynamically - depending on the current host / site. I'm working with feature branches (vercel) so each feature has it's own preview URL.
Copy code
supabase.auth.signIn({ email }, { redirectTo: "URL here" })
// does supabase follow this
redirectTo
?
s
silentworks
01/26/2022, 2:28 PM
Yes but you need to make sure the redirectTo URL is listed under your additional URL inside of the Supabase UI.
w
wiesson
01/27/2022, 8:54 AM
Hmm, but how do I dynamically update the URL in the supabase config?
s
silentworks
01/27/2022, 12:41 PM
You cannot, it has to be static, you can only dynamically generate a url for the redirectTo
Previous
Next