Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhoneAuthProvider doesn't work as expected #677

Open
vfutia opened this issue Nov 26, 2024 · 0 comments
Open

PhoneAuthProvider doesn't work as expected #677

vfutia opened this issue Nov 26, 2024 · 0 comments

Comments

@vfutia
Copy link

vfutia commented Nov 26, 2024

Maybe this is a lack of understanding on my part but it doesn't appear that the PhoneAuthProvider works as one would expect. I'm working on a Kotlin Multiplatform project and have created an Android specific implementation of PhoneVerificationProvider and and iOS specific implementation as well. I am triggering calls to PhoneAuthProvider().verifyPhoneNumber() in common code and pass it the PhoneVerificationProvider from the respective platform using expects/actual.

There are two things that don't make sense to me:

  1. On the Android side, there doesn't appear to be any way to actually submit your SMS code to Firebase. In the code, it looks like it's only automatically done for you after the timeout expires. getVerificationCode() is called when the timeout triggers and whatever that returns after the timeout, ready or not, is what gets sent to Firebase. Additionally, there is no way to get access to the verificationId that comes from Firebase so that you can manually trigger a call to credential(). Am I wrong? Is there a way to manually submit the verification code that I'm not seeing?

  2. The iOS interface of PhoneVerificationProvider doesn't make any sense to me and I have no clue how to use it. This interface does not include a timeout. You also have to specific a FIRAuthUIDelegateProtocol and I have no idea what that is or where to get one. It's really unclear how this is supposed to work in the iOS context.

Any help I could get with this would be appreciated!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant