Closed nichealpham closed 2 years ago
Sorry, it was me that not reading the document correctly. The library has efficiently handling this case via the call back
cfaSignInPhone('+16505551234').subscribe(
user => console.log(user.phoneNumber)
)
So Closing the issue now. Thanks.
In modern android, the phone verification is automatically verified when the OTP arrives, so when typing the OTP again the users get a verification code expired error.
This issue only happens in:
Possible fix: In another library, there are options for listening to the AuthenticationChangedEvent, we need that event to automatically Login the user when the OTP arrives without requiring the user to type in the code manually.
React-native firebase Auth got the feature: https://rnfirebase.io/auth/phone-auth