From 365a9f6480581042760bf99c5660e249470f79f6 Mon Sep 17 00:00:00 2001 From: TZGyn Date: Sun, 12 Feb 2023 12:02:29 +0800 Subject: [PATCH] update: login page using composable --- pages/login/index.vue | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/pages/login/index.vue b/pages/login/index.vue index ac18b70..de843b3 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -75,20 +75,14 @@ ); const signUp = async (event: Event) => { - const { data: user, error } = await supabase.auth.signUp({ - email: credential.email, - password: credential.password, - }); - console.log('user', user); + const error = userSignUp(credential.email, credential.password); + console.log('error', error); }; const signIn = async (event: Event) => { - const { data: user, error } = await supabase.auth.signInWithPassword({ - email: credential.email, - password: credential.password, - }); - console.log('user', user); + const error = userSignIn(credential.email, credential.password); + console.log('error', error); };