-
Notifications
You must be signed in to change notification settings - Fork 4k
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
🐛 [FIREBASE_AUTH] In Phone Authentication, when using codeSent, verification Id is not returning a 6 digit number. #10568
Comments
Thanks for the report @dshundal94
In order to narrow down the behavior strictly to |
Hey @darshankawar, thanks for the suggestions! The Furthermore, in the console after the
However, I still receive a 6 digit code when testing with a real device. Is there anything else you would want me to test out, I would be glad to try any suggestion :) EDIT: Here is a repository without using |
Thanks for the update.
This seems to be coming from native SDK and not from flutterfire, so I suggest you to take a look at this related issue for further reference: firebase/firebase-android-sdk#2688 and #4916 (comment)
I see that you have not initialised firebase app using latest tool, ie It may be that the way you have initialised the app, could be mis-config or a setting issue. |
Hey @darshankawar, appreciate the suggestions.
Thank you, I will take a look at this!
That was also a good suggestion, I did it however, and I still am getting the issue. The https://github.com/dshundal94/phoneAuthWithoutAppCheck repository is pushed with the updated changes. |
I cloned the repo and ran it on simulator, but after entering the phone number, I don't see any action happening. The phone number prints in the console but nothing after that. Same on emulator as well. I used my demo firebase app and linked it with the repo clone. I'll keep this issue open for team's insights on expected behavior or why the behavior is as reported. /cc @Lyokone |
It's normal that the verificationId is a long string. Please check the documentation.
|
Bug report
Describe the bug
In Phone Authentication, when the codeSent function is called, the verificationID that is being printed to the console is not returning a 6 digit number, instead it is returning a long string of random combination of letters and numbers. Tried this both on Windows and Mac M1 Pro computer. The verification ID that is returned is always the same, regardless of phone number being used.
I could not enable SafetyNet since it was after the 1/31/2023 deadline, and I have PlayIntegrity API enabled on google cloud console and firebase console. I also have SHA-1 and SHA-256 keys in the console. The app is in debug mode and appCheck is being used with AndroidProvider.debug, I've also tried it with PlayIntegrity. I have some numbers whitelisted in Firebase Console for testing. I am testing on an Android Device, recaptcha verification is being shown even with AppCheck enabled. I couldn't find any other documentation of this behavior online, so I'm not quite sure why I'm getting this behavior.
Steps to reproduce
Here is an example repository: https://github.com/dshundal94/phoneAuthTest
Note: Even when creating a new repository for testing, the verification ID that is being sent is the same as my main app.
Steps to reproduce the behavior:
When printing to console, I get this:
Expected behavior
The expected behavior is the verification ID returns a 6 digit number.
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: