fanclubfm
03/19/2022, 9:46 PM${window.location.origin}${router.pathname}
,
} and after login user will be redirected to that page. Of course the page has to be listed in redirect url section in supabase authentication setting in admin (you need to list each fully qualified url you might redirect to unfortunately ) and if your url ends with / in redirect section, redirectTo has to fully match. Hope that helps, but basically you can use it to make sure user is redirected after login to wherever you want. Key thing is urls matching to whats in supabase admin.
Actually - maybe I'm mistaken as it's been a while. I think I use redirectTo when signing in with magic link to control where user is redirected after they click magic link. Everything else is the same.chipilov
03/20/2022, 8:30 AM