diff --git a/libs/auth/src/angular/two-factor-auth/child-components/two-factor-auth-email/two-factor-auth-email.component.ts b/libs/auth/src/angular/two-factor-auth/child-components/two-factor-auth-email/two-factor-auth-email.component.ts index 0c4bb64ba03..25235017bd1 100644 --- a/libs/auth/src/angular/two-factor-auth/child-components/two-factor-auth-email/two-factor-auth-email.component.ts +++ b/libs/auth/src/angular/two-factor-auth/child-components/two-factor-auth-email/two-factor-auth-email.component.ts @@ -81,7 +81,7 @@ export class TwoFactorAuthEmailComponent implements OnInit { const providers = await this.twoFactorService.getProviders(); - if (!providers) { + if (!providers || providers.size === 0) { throw new Error("User has no 2FA Providers"); }