From 47ce605e77dbb8ea04681d3a9f4917d1010de997 Mon Sep 17 00:00:00 2001 From: Alec Rippberger Date: Wed, 9 Oct 2024 14:01:01 -0500 Subject: [PATCH] Restructure handAuthResult to ensure we redirect to vault. --- libs/auth/src/angular/login/login.component.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/auth/src/angular/login/login.component.ts b/libs/auth/src/angular/login/login.component.ts index bf0c9607f8..2175d2e4a6 100644 --- a/libs/auth/src/angular/login/login.component.ts +++ b/libs/auth/src/angular/login/login.component.ts @@ -249,16 +249,16 @@ export class LoginComponent implements OnInit, OnDestroy { } // If none of the above cases are true, proceed with login... - // ...on Web if (this.clientType === ClientType.Web) { await this.goAfterLogIn(authResult.userId); - // ...on Browser/Desktop - } else if (this.clientType === ClientType.Browser) { - this.loginEmailService.clearValues(); + } + + this.loginEmailService.clearValues(); + + if (this.clientType === ClientType.Browser) { await this.router.navigate(["/tabs/vault"]); } else { await this.router.navigate(["vault"]); - this.loginEmailService.clearValues(); } }