-
Notifications
You must be signed in to change notification settings - Fork 1.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
Multifactor resolver always uses default instance #12265
Labels
Milestone
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
I created a pull request to address this |
8 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
In FIRMultFactorResolver defining an instance that is not default does not allow one to finish mfa sign in because it always finalizes with the default instance.
I expected the mfa to finalize, but what actually happened was I got a "user does not belong to this project" error.
Reproducing the issue
Initialize the default instance of FIRAuth with the info.plist to be some firebase project.
Implement a sign in flow with a different instance and catch the multifactor resolver from it's authentication error.
When you try to finalize the sign in with, it tries to use the wrong instance, which can be verified with a breakpoint or by using
a proxy and observing the wrong api key being used.
Firebase SDK Version
10.9
Xcode Version
14.3
Installation Method
CocoaPods
Firebase Product(s)
Authentication, Messaging
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
No response
If using CocoaPods, the project's Podfile.lock
No response
The text was updated successfully, but these errors were encountered: