From d09293a9341c59c84483b54f555fd08b5987bf2a Mon Sep 17 00:00:00 2001 From: Alec Rippberger Date: Tue, 15 Apr 2025 16:22:16 -0500 Subject: [PATCH] Remove default selectedProviderType --- .../two-factor-auth/two-factor-auth.component.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/auth/src/angular/two-factor-auth/two-factor-auth.component.ts b/libs/auth/src/angular/two-factor-auth/two-factor-auth.component.ts index 846070850cd..f184ffccfb7 100644 --- a/libs/auth/src/angular/two-factor-auth/two-factor-auth.component.ts +++ b/libs/auth/src/angular/two-factor-auth/two-factor-auth.component.ts @@ -46,7 +46,10 @@ import { ToastService, } from "@bitwarden/components"; -import { TwoFactorAuthComponentCacheService , TwoFactorAuthData } from "../../common/services/auth-request/two-factor-auth-cache.service"; +import { + TwoFactorAuthComponentCacheService, + TwoFactorAuthData, +} from "../../common/services/auth-request/two-factor-auth-cache.service"; import { AnonLayoutWrapperDataService } from "../anon-layout/anon-layout-wrapper-data.service"; import { TwoFactorAuthAuthenticatorIcon, @@ -107,7 +110,7 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy { orgSsoIdentifier: string | undefined = undefined; providerType = TwoFactorProviderType; - selectedProviderType: TwoFactorProviderType = TwoFactorProviderType.Authenticator; + selectedProviderType: TwoFactorProviderType | undefined = undefined; // TODO: PM-17176 - build more specific type for 2FA metadata twoFactorProviders: Map | null = null; @@ -220,10 +223,7 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy { this.twoFactorCacheService.cacheData({ token: data?.token ?? currentData?.token ?? "", remember: data?.remember ?? currentData?.remember ?? false, - selectedProviderType: - data?.selectedProviderType ?? - currentData?.selectedProviderType ?? - TwoFactorProviderType.Authenticator, + selectedProviderType: data?.selectedProviderType ?? currentData?.selectedProviderType, }); }