Mike Stop Continues
07/29/2021, 2:37 PMburggraf
07/29/2021, 2:38 PMburggraf
07/29/2021, 2:39 PMMike Stop Continues
07/29/2021, 2:39 PMburggraf
07/29/2021, 2:40 PMMike Stop Continues
07/29/2021, 2:41 PMexample.com
so that a user can stay logged in across www.
and app.
?burggraf
07/29/2021, 2:41 PMpublic signInWithProvider = async (provider: Provider) => {
const { user, session, error } = await supabase.auth.signIn({
// provider can be:
// 'azure','bitbucket','facebook','github','gitlab','google','twitter','apple'
provider: provider
},{
redirectTo: window.location.origin
});
return { user, session, error };
}
burggraf
07/29/2021, 2:42 PMwindow.location.origin
is the domain they're authentication from, which is usualy localhost:8100
or something like that while in development, or any of of my other domains in the redirect URL's list.burggraf
07/29/2021, 2:43 PMMike Stop Continues
07/29/2021, 2:45 PMMike Stop Continues
07/29/2021, 2:46 PMMike Stop Continues
07/29/2021, 2:46 PMburggraf
07/29/2021, 2:50 PM