Skip to content

Commit ec27faf

Browse files
authored
initWithAuthUI: Auth Fix
When custom FIRAuth is used, it needs to be passed to create AuthProvider. This fix is required for auth providers like Twitter. Related PR: #974
1 parent 91da16a commit ec27faf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FirebaseOAuthUI/Sources/FUIOAuth.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ - (instancetype)initWithAuthUI:(FUIAuth *)authUI
136136
_customParameters = customParameters;
137137
_loginHintKey = loginHintKey;
138138
if ((_authUI.isEmulatorEnabled || ![_providerID isEqualToString:@"apple.com"]) && ![_providerID isEqualToString:@"facebook.com"]) {
139-
_provider = [FIROAuthProvider providerWithProviderID:self.providerID];
139+
_provider = [FIROAuthProvider providerWithProviderID:self.providerID auth:_authUI.auth];
140140
}
141141
}
142142
return self;

0 commit comments

Comments
 (0)