CLASSROOMIO-T-1: signInWithGoogle update function
This commit is contained in:
@@ -13,13 +13,16 @@
|
|||||||
async function signInWithGoogle() {
|
async function signInWithGoogle() {
|
||||||
try {
|
try {
|
||||||
console.log('signInWithGoogle');
|
console.log('signInWithGoogle');
|
||||||
const { data, error } = await supabase.auth.signInWithOAuth({
|
const { user, session, error } = await supabase.auth.signIn({
|
||||||
provider: 'google',
|
provider: 'google',
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('data', data);
|
console.log('user', user);
|
||||||
|
console.log('session', session);
|
||||||
console.log('error', error);
|
console.log('error', error);
|
||||||
} catch (error) {}
|
} catch (error) {
|
||||||
|
console.log('catch error', error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user