Skip to content

Commit 52e6dee

Browse files
authored
Revert "Raise exception when log into Facebook using OAuth. (#3138)" (#3208) (#3209)
This reverts commit 393d060.
1 parent fec2260 commit 52e6dee

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Firebase/Auth/Source/AuthProvider/OAuth/FIROAuthProvider.m

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@
2323
#import "FIRAuthBackend.h"
2424
#import "FIRAuth_Internal.h"
2525
#import "FIRAuthErrorUtils.h"
26-
#import "FIRAuthExceptionUtils.h"
2726
#import "FIRAuthGlobalWorkQueue.h"
2827
#import "FIRAuthRequestConfiguration.h"
2928
#import "FIRAuthWebUtils.h"
30-
#import "FIRFacebookAuthProvider.h"
3129
#import "FIROAuthCredential_Internal.h"
3230
#import "FIROAuthCredential.h"
3331

@@ -167,12 +165,6 @@ - (void)getCredentialWithUIDelegate:(nullable id<FIRAuthUIDelegate>)UIDelegate
167165
@return An Instance of @c FIROAuthProvider.
168166
*/
169167
- (nullable instancetype)initWithProviderID:(NSString *)providerID auth:(FIRAuth *)auth {
170-
if ([providerID isEqual:FIRFacebookAuthProviderID]) {
171-
[FIRAuthExceptionUtils raiseInvalidParameterExceptionWithReason:
172-
@"Sign in with Facebook is not supported via this method; the Facebook TOS "
173-
"dictate that you must use the Facebook iOS SDK for Facebook login."];
174-
return nil;
175-
}
176168
self = [super init];
177169
if (self) {
178170
_auth = auth;

0 commit comments

Comments
 (0)