Skip to content

Commit

Permalink
fix(auth): deprecate MultiFactorUser.enrolledFactor should be plural …
Browse files Browse the repository at this point in the history
  • Loading branch information
mnahkies authored Apr 12, 2024
1 parent 21a9454 commit 1ae7481
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/auth/lib/multiFactor.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export class MultiFactorUser {
user = auth.currentUser;
}
this._user = user;
this.enrolledFactors = user.multiFactor.enrolledFactors;
// @deprecated kept for backwards compatibility, please use enrolledFactors
this.enrolledFactor = user.multiFactor.enrolledFactors;
}

Expand Down

0 comments on commit 1ae7481

Please sign in to comment.