We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6568775 commit 5f1cd5dCopy full SHA for 5f1cd5d
FirebaseAuthUI/Sources/FUIAuth.m
@@ -201,7 +201,8 @@ - (void)signInWithProviderUI:(id<FUIAuthProvider>)providerUI
201
[self.auth signInWithCredential:credential
202
completion:^(FIRAuthDataResult *_Nullable authResult,
203
NSError *_Nullable error) {
204
- if (error && error.code == FIRAuthErrorCodeAccountExistsWithDifferentCredential) {
+ if (self.emailAuthProvider && error
205
+ && error.code == FIRAuthErrorCodeAccountExistsWithDifferentCredential) {
206
NSString *email = error.userInfo[kErrorUserInfoEmailKey];
207
[self.emailAuthProvider handleAccountLinkingForEmail:email
208
newCredential:credential
0 commit comments