From 0f52e2703f0770a97dd40e7d1d70c124a623aa31 Mon Sep 17 00:00:00 2001 From: ittipat <39715559+ittipatken@users.noreply.github.com> Date: Wed, 20 Aug 2025 05:42:11 +0700 Subject: [PATCH] fix(#43): revert back to previous login code --- src/app/welcome/welcome.page.ts | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/src/app/welcome/welcome.page.ts b/src/app/welcome/welcome.page.ts index 4ef59a8..7acb47f 100644 --- a/src/app/welcome/welcome.page.ts +++ b/src/app/welcome/welcome.page.ts @@ -78,24 +78,8 @@ export class WelcomePage implements OnInit, OnDestroy { this.authStateSubscription.unsubscribe(); } - async login() { - const loading = await this.loadingCtrl.create({ - message: "Signing in...", - spinner: "crescent", - }); - await loading.present(); - - try { - await this.authService.signInWithPopup(); - } catch (e) { - console.error("Login failed", e); - await this.alertError( - "Login Failed", - "Unable to sign in. Please try again." - ); - } finally { - loading.dismiss(); - } + login() { + this.authService.signInWithPopup(); } logout() {