Commit 1ae7481
authored
fix(auth): deprecate MultiFactorUser.enrolledFactor should be plural
* fix!: enrolledFactors rather than enrolledFactor
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#L34enrolledFactors (#7652)1 parent 21a9454 commit 1ae7481
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
0 commit comments