-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
Keep Openavoids the stale botavoids the stale botWorkflow: Needs ReviewPending feedback or review from a maintainer.Pending feedback or review from a maintainer.Workflow: Waiting for User ResponseBlocked waiting for user response.Blocked waiting for user response.blocked: customer-responseplatform: iosplugin: authenticationFirebase AuthenticationFirebase Authenticationtype: bugNew bug reportNew bug report
Description
RN: 0.72.7
RNFB: 18.7.3
iOS: 17.x
There appears to be an issue with the decoding of the MultifactorInfo on iOS when performing the MFA sign-in flow, this code is working on Android, but on iOS it appears that the phone number coming over is formatted as +*******1234
and in turn is throwing the invalid-phone-number error when calling the verifyPhoneNumberWithMultiFactorInfo method.
Tested on device and simulator with the same result.
The code below is based on the official documentation from here: https://rnfirebase.io/auth/multi-factor-auth
const mfaResolver = auth().getMultiFactorResolver(error);
if (mfaResolver?.hints[0].factorId === auth.PhoneMultiFactorGenerator.FACTOR_ID) {
const hint = mfaResolver.hints[0];
const sessId = mfaResolver.session;
auth()
.verifyPhoneNumberWithMultiFactorInfo(hint, sessId)
.then((vId) => {
setVerificationId(vId);
setMfaResolver(mfaResolver);
setShowVerificationForm(true);
})
}
Ideas or assistance is appreciated.
Metadata
Metadata
Assignees
Labels
Keep Openavoids the stale botavoids the stale botWorkflow: Needs ReviewPending feedback or review from a maintainer.Pending feedback or review from a maintainer.Workflow: Waiting for User ResponseBlocked waiting for user response.Blocked waiting for user response.blocked: customer-responseplatform: iosplugin: authenticationFirebase AuthenticationFirebase Authenticationtype: bugNew bug reportNew bug report