-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: enrolledFactors rather than enrolledFactor #7652
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
e85cfd1
to
07aa603
Compare
the typescript definitions specify it as `enrolledFactors` reflecting that it is an array, but the javascript was actually setting it as `enrolledFactor` at runtime. ref: - typings: https://github.com/invertase/react-native-firebase/blob/main/packages/auth/lib/index.d.ts#L568 - android: https://github.com/invertase/react-native-firebase/blob/main/packages/auth/android/src/main/java/io/invertase/firebase/auth/ReactNativeFirebaseAuthModule.java#L2476 - ios: https://github.com/invertase/react-native-firebase/blob/main/packages/auth/ios/RNFBAuth/RNFBAuthModule.m#L1681 - web sdk: https://github.com/firebase/firebase-js-sdk/blob/master/packages/auth/src/mfa/mfa_user.ts#L34 BREAKING CHANGE: runtime MFA user property renamed from `enrolledFactor` to `enrolledFactors` and now matches typescript types
@mikehardy I've adjusted this to be backwards compatible since I missed the v19 release, it would be great if you could take a look 🙏 |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #7652 +/- ##
===========================================
- Coverage 68.05% 33.24% -34.81%
===========================================
Files 149 251 +102
Lines 5943 12464 +6521
Branches 1250 1944 +694
===========================================
+ Hits 4044 4142 +98
- Misses 1802 8233 +6431
+ Partials 97 89 -8 |
Hello 👋, this PR has been opened for more than 2 months with no activity on it. If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing! You have 15 days until this gets closed automatically |
not stale |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a no-brainer now - only sorry took me this long to get it in! Thanks for your patience
Description
the typescript definitions specify it as
enrolledFactors
reflecting that it is an array, but the javascript was actually setting it asenrolledFactor
at runtime.the original
enrolledFactor
property is kept for backwards compatibility, but could be removed in a future major version.ref:
Release Summary
Checklist
Android
iOS
e2e
tests added or updated inpackages/\*\*/e2e
jest
tests added or updated inpackages/\*\*/__tests__