Replies: 2 comments 3 replies
-
We have the same requirements for our app. Would be really nice to have It. Maybe it worth opening PR. Thanks for the patch BTW. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@paulb777 @mikehardy What do you think? Can I or @huwmartin (if he wants/is available) open a PR for this? It would be nice to have access to the last four digits of the phone number for UI purposes before the user completes MFA verification. Thanks! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Firebase iOS and Android SDKs support a
phoneNumber
property on aMultiFactorInfo
hint
(see here and here), this shows the phone number used for MFA when authenticated and is partially masked when the user is signing in with MFA, this would be quite nice to be able to show "We've sent an SMS to +******461". We've patched this into @react-native-firebase/auth in our own project but I wanted to see whether there was an appetite for this.Happy to open a PR for this, open to discussion on any amendments on how you would like to see this implemented. Main thing I could use some steer on is how this should be expressed for the TypeScript types - for the patch within our project we simply added
phoneNumber
as an optional property onMultiFactorInfo
, but this could be split into some union type likePhoneMultiFactorInfo | MultiFactorInfo
to more closely mirror the native SDKs.Beta Was this translation helpful? Give feedback.
All reactions