Skip to content

Totp enrollment : TypeError: Cannot add property 3, object is not extensible #3653

Closed as not planned
@dovatgabriel

Description

@dovatgabriel

Image

When trying to enroll MFA :

const user = await firstValueFrom(this.authenticationService.getFirebaseUser());

if (!user) {
  throw 'User needs to be logged in to finish MFA setup.';
}

const assertion = TotpMultiFactorGenerator.assertionForEnrollment(
  this.currentTotpSecret,
  verificationCode.trim()
);

await multiFactor(user).enroll(assertion);

Angular v17.3.12
@angular/fire v17.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions