From d1fd8bb194628da7926c949ffb4a2c0717a7a115 Mon Sep 17 00:00:00 2001 From: ari Date: Tue, 18 Nov 2025 11:50:01 +0700 Subject: [PATCH] update format func --- app/components/app/auth/login.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app/components/app/auth/login.vue b/app/components/app/auth/login.vue index 170ab5d3..a10200eb 100644 --- a/app/components/app/auth/login.vue +++ b/app/components/app/auth/login.vue @@ -35,9 +35,16 @@ const onSubmit = handleSubmit(async (values) => { } }) -function onSSO() { - emit('sso') -} + +const onSSO = (async () => { + console.log("Emitting SSO...") + try { + await emit('sso') + } catch (error) { + console.error('Call SSO failed:', error) + } +}); +