Johnny008
05/25/2023, 5:12 AMexport async function signInWithGoogle() {
const { session, user, error } = await supabase.auth.signInWithOAuth({
provider: "google",
options: {
redirectTo: "https://www.website.com/dashboard",
queryParams: {
access_type: "offline",
prompt: "consent",
scopes: ["https://www.googleapis.com/auth/calendar.events"],
},
},
});
if (error) {
console.log("Error: ", error);
}
}
silentworks
05/25/2023, 4:13 PM