Skip to content

Commit

Permalink
fix: make backwards compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
mnahkies committed Mar 9, 2024
1 parent c7321a4 commit 2457a55
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 @@ -15,6 +15,8 @@ export class MultiFactorUser {
}
this._user = user;
this.enrolledFactors = user.multiFactor.enrolledFactors;

Check warning on line 17 in packages/auth/lib/multiFactor.js

View check run for this annotation

Codecov / codecov/patch

packages/auth/lib/multiFactor.js#L17

Added line #L17 was not covered by tests
// @deprecated kept for backwards compatibility, please use enrolledFactors
this.enrolledFactor = user.multiFactor.enrolledFactors;
}

getSession() {
Expand Down

0 comments on commit 2457a55

Please sign in to comment.