[auth] The resolver exposed in MFA is not associated to the correct app #10690
Closed
Description
Description
When getting the resolver
from key "FIRAuthErrorUserInfoMultiFactorResolverKey"
, the resolver is associated with the default app name even though I signed in with an app name with a different app name.
first reported here: firebase/flutterfire#10275
Reproducing the issue
FIRAuth *auth = [FIRAuth authWithApp:app];
[auth signInWithEmail:@"email"
password:@"password"
completion:^(FIRAuthDataResult *_Nullable authResult, NSError *_Nullable error) {
if (error != nil) {
if (error.code == FIRAuthErrorCodeSecondFactorRequired) {
FIRMultiFactorResolver *resolver = (FIRMultiFactorResolver *)error.userInfo[FIRAuthErrorUserInfoMultiFactorResolverKey];
// here the resolver is associated with the wrong app name see screenshot
} else {
result.error(nil, nil, nil, error);
}
} else {
result.success(authResult);
}
}];
Firebase SDK Version
10.3.0
Xcode Version
14.2
Installation Method
CocoaPods
Firebase Product(s)
Authentication
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
Expand Package.resolved
snippet
Replace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand Podfile.lock
snippet
Replace this line with the contents of your Podfile.lock!