From 3636c72741ba7f630c5dc75a49d671618be61c22 Mon Sep 17 00:00:00 2001 From: rr-bw <102181210+rr-bw@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:29:01 -0700 Subject: [PATCH] handle post-login routing on Browser/Desktop --- libs/auth/src/angular/login/login.component.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/libs/auth/src/angular/login/login.component.ts b/libs/auth/src/angular/login/login.component.ts index f8d0581fe2f..ecefee18ee4 100644 --- a/libs/auth/src/angular/login/login.component.ts +++ b/libs/auth/src/angular/login/login.component.ts @@ -166,9 +166,22 @@ export class LoginComponentV2 implements OnInit, OnDestroy { this.loginEmailService.clearValues(); await this.router.navigate(["update-temp-password"]); } else { + // TODO-rr-bw: handle desktop specific + // TODO-rr-bw: handle browser specific + // Web specific (start) await this.goAfterLogIn(response.userId); // Web specific (end) + + // Browser/Desktop (start) + this.loginEmailService.clearValues(); + + if (this.clientType === ClientType.Browser) { + await this.router.navigate(["/tabs/vault"]); + } else { + await this.router.navigate(["vault"]); + } + // Browser/Desktop (end) } };