From 38eae9dafb04327c78159e7a9bb784668aa4cbc7 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Sun, 4 Dec 2022 05:28:34 +0100 Subject: [PATCH] CLASSROOMIO-T-1: signInWithGoogle update function --- src/components/AuthUI/index.svelte | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/AuthUI/index.svelte b/src/components/AuthUI/index.svelte index c2a968b5..0241ce87 100644 --- a/src/components/AuthUI/index.svelte +++ b/src/components/AuthUI/index.svelte @@ -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); + } }