Scotty
01/28/2022, 7:19 PMjs
const { user, session, error } = await supabase.auth.signIn({
// provider can be 'github', 'google', 'gitlab', or 'bitbucket'
provider: "github",
});
console.log(user);
silentworks
01/28/2022, 7:26 PMScotty
01/28/2022, 7:29 PMsilentworks
01/28/2022, 7:30 PMScotty
01/28/2022, 7:33 PMjs
const { user, session, error } = await supabase.auth.signIn(
{
provider: "github",
},
{
redirectTo: "https://localhost:3000/dashboard",
}
);
For me, this adds the token and everythingsilentworks
01/28/2022, 7:34 PMScotty
01/28/2022, 9:22 PM