-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Issue
Hello guys, I'm trying to implement signing with SMS provider and I found response mismatch.
If we try to confirm verification code we will get User object (like described in docs: https://rnfirebase.io/docs/v5.x.x/auth/reference/ConfirmationResult#confirm).
In my POV it's not correct, because it's not a added value and you're not passing more needed data like isNewUser
flag.
As you can see in official Firebase docs this method should return UserCredentials
(https://firebase.google.com/docs/reference/js/firebase.auth.ConfirmationResult#confirm)
I checked your native code and it's doable because you're passing only user object without additionalUserInfo
(see the link to ios code: https://github.com/invertase/react-native-firebase/blob/master/packages/auth/ios/RNFBAuth/RNFBAuthModule.m#L728 and android: https://github.com/invertase/react-native-firebase/blob/master/packages/auth/android/src/main/java/io/invertase/firebase/auth/ReactNativeFirebaseAuthModule.java#L956)
Hope it does make sense to you!