Skip to content

Commit 0f52e27

Browse files
committed
fix(#43): revert back to previous login code
1 parent cf32a25 commit 0f52e27

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

src/app/welcome/welcome.page.ts

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -78,24 +78,8 @@ export class WelcomePage implements OnInit, OnDestroy {
7878
this.authStateSubscription.unsubscribe();
7979
}
8080

81-
async login() {
82-
const loading = await this.loadingCtrl.create({
83-
message: "Signing in...",
84-
spinner: "crescent",
85-
});
86-
await loading.present();
87-
88-
try {
89-
await this.authService.signInWithPopup();
90-
} catch (e) {
91-
console.error("Login failed", e);
92-
await this.alertError(
93-
"Login Failed",
94-
"Unable to sign in. Please try again."
95-
);
96-
} finally {
97-
loading.dismiss();
98-
}
81+
login() {
82+
this.authService.signInWithPopup();
9983
}
10084

10185
logout() {

0 commit comments

Comments
 (0)