-
Notifications
You must be signed in to change notification settings - Fork 575
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
[SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17499 INVALID_PROJECT_ID:Project ID does not match MFA pending credential #6348
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Hello, just checking back to see if there's any update on this. |
Hi @0xPr0xy, thank you for reaching out. I tried reproducing the issue, however, I'm encountering a different error. Can you share an MCVE to help us investigate the issue? You can try our quickstart app and work from there to reproduce the issue. Thanks! |
I have created a private repository and invited you as contributor: https://github.com/0xPr0xy/firebase-auth-MCVP/ Kind regards |
Thank you for additional information @0xPr0xy. After running your MCVE, I still wasn’t able to reproduce the issue.
This could be the cause of the issue that you’re experiencing. Could you try removing the line where you set the tenant ID?
In addition to that, Phone Authentication/ SMS multi-factor Auth uses a lot of signals to prevent fraud. This means:
To add, the error you’re encountering could be due to misconfiguration in the Android app or the Firebase project settings. It's possible that the Android app is configured to use a different Firebase project ID than the one where the user's phone number is registered for 2FA. I suggest verifying the Firebase project configuration in the Android app. Ensure that the correct That said, I’ll close this issue for now. To get better help, try reaching out to the Firebase Support channel. We'd need access to your project settings (including projectID, SHA-1 etc) to troubleshoot this type of issue. Please do keep in mind that our SDK support team does not have access to the backend or your project details. |
That's very strange we can reproduce this issue consistently both in an app installed from the Play Store on a real device (internal testing). but also on the MCVE running in an Android simulator. (SDK SHA added to firebase).
I've indeed read that, however it's unclear when the documentation was last updated as support for setting tenants was added pretty recently, and the iOS documentation says the same thing, yet it MFA with multi tenancy fully works on iOS.
We're pretty sure we have resolved all those errors by adding Additionally, keep in mind that we are able to correctly sign up a user including adding and verifying the second factor on a multi tenant. so when registering the 2FA phone verification SMS is sent correctly for the multi-tenant registered user. |
Thank you for clarifying the details. Let me raise this to our engineering team. I'll get back to you as soon as I hear back from them. Thanks! |
@lehcar09 Just checking back here, do you have any idea when we can expect a reply from engineering team? |
[READ] Step 1: Are you in the right place?
The code isn't in this repository but it is about
com.google.firebase:firebase-auth
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Context
Project is a Flutter app, using Firebase Auth
5.3.1
We are using Firebase Auth with GCP Identity Platform, since we want
multi-tenant
feature, and Phone 2FA.Problem
Registering a user, and adding the Phone 2FA to the account using Firebase Auth SDK does work on both Android and iOS.
Logging in a user with 2FA enabled using the Firebase Auth SDK does not work on Android, and does work on iOS.
What works
What doesn't work
FirebaseAuthMultiFactorException
exception as per the documentationverifyPhoneNumber
with the resolver session and first hint[SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17499 INVALID_PROJECT_ID:Project ID does not match MFA pending credential
Related (but the issue looks to be Android SDK related and not Flutter related): firebase/flutterfire#9550
Steps to reproduce:
Multi-factor enrolled
with type PhoneRelevant Code:
👉Code can be shared privately.
👉We can also add you to the test app in Play Store.
Signing in with 2FA handling (codeSent is never called and gives error)
❌Error:
[SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17499 INVALID_PROJECT_ID:Project ID does not match MFA pending credential
Registering 2FA (works)
Debug logs + screenshot of the created account in GCP:
bug.zip
The text was updated successfully, but these errors were encountered: