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:
parent
7235b37b85
commit
4a60ae2736
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user