CLASSROOMIO-T-1: signInWithGoogle update function

This commit is contained in:
Rotimi Best
2022-12-04 05:28:34 +01:00
parent 3b0ff79c60
commit 38eae9dafb
+6 -3
View File
@@ -13,13 +13,16 @@
async function signInWithGoogle() {
try {
console.log('signInWithGoogle');
const { data, error } = await supabase.auth.signInWithOAuth({
const { user, session, error } = await supabase.auth.signIn({
provider: 'google',
});
console.log('data', data);
console.log('user', user);
console.log('session', session);
console.log('error', error);
} catch (error) {}
} catch (error) {
console.log('catch error', error);
}
}
</script>