1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-15 01:11:47 +01:00

PM-8113 - TwoFactorAuthComponent - Add type for providerData

This commit is contained in:
Jared Snider 2024-12-09 19:48:37 -05:00
parent 7235b37b85
commit 4a60ae2736
No known key found for this signature in database
GPG Key ID: A149DDD612516286

View File

@ -84,7 +84,7 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy {
providers = TwoFactorProviders;
providerType = TwoFactorProviderType;
selectedProviderType: TwoFactorProviderType = TwoFactorProviderType.Authenticator;
providerData: any;
providerData: { [key: string]: string }; // TODO: build more specific type
@ViewChild("duoComponent") duoComponent!: TwoFactorAuthDuoComponent;
@ -155,6 +155,7 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy {
return providers.get(this.selectedProviderType);
});
this.providerData = providerData;
await this.setTitleByTwoFactorProvider();
this.form.valueChanges.pipe(takeUntilDestroyed()).subscribe((value) => {