Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions FirebaseAuth/Sources/AuthProvider/OAuth/FIROAuthProvider.m
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,14 @@ - (void)getCredentialWithUIDelegate:(nullable id<FIRAuthUIDelegate>)UIDelegate
@return An Instance of @c FIROAuthProvider.
*/
- (nullable instancetype)initWithProviderID:(NSString *)providerID auth:(FIRAuth *)auth {
NSAssert(![providerID isEqual:FIRFacebookAuthProviderID],
@"Sign in with Facebook is not supported via generic IDP; the Facebook TOS "
"dictate that you must use the Facebook iOS SDK for Facebook login.");
NSAssert(![providerID isEqual:@"apple.com"],
@"Sign in with Apple is not supported via generic IDP; You must use the Apple iOS SDK"
" for Sign in with Apple.");
if (!auth.requestConfiguration.emulatorHostAndPort) {
NSAssert(![providerID isEqual:FIRFacebookAuthProviderID],
@"Sign in with Facebook is not supported via generic IDP; the Facebook TOS "
"dictate that you must use the Facebook iOS SDK for Facebook login.");
NSAssert(![providerID isEqual:@"apple.com"],
@"Sign in with Apple is not supported via generic IDP; You must use the Apple iOS SDK"
" for Sign in with Apple.");
}
self = [super init];
if (self) {
_auth = auth;
Expand Down