File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Firebase/Auth/Source/AuthProvider/OAuth Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 23
23
#import " FIRAuthBackend.h"
24
24
#import " FIRAuth_Internal.h"
25
25
#import " FIRAuthErrorUtils.h"
26
+ #import " FIRAuthExceptionUtils.h"
26
27
#import " FIRAuthGlobalWorkQueue.h"
27
28
#import " FIRAuthRequestConfiguration.h"
28
29
#import " FIRAuthWebUtils.h"
30
+ #import " FIRFacebookAuthProvider.h"
29
31
#import " FIROAuthCredential_Internal.h"
30
32
#import " FIROAuthCredential.h"
31
33
@@ -165,6 +167,12 @@ - (void)getCredentialWithUIDelegate:(nullable id<FIRAuthUIDelegate>)UIDelegate
165
167
@return An Instance of @c FIROAuthProvider.
166
168
*/
167
169
- (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
+ }
168
176
self = [super init ];
169
177
if (self) {
170
178
_auth = auth;
You can’t perform that action at this time.
0 commit comments