Skip to content

Commit 0e97275

Browse files
authored
Block sign in with Apple in generic IDP flow (#3970)
1 parent eca2170 commit 0e97275

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ - (nullable instancetype)initWithProviderID:(NSString *)providerID auth:(FIRAuth
169169
NSAssert(![providerID isEqual:FIRFacebookAuthProviderID],
170170
@"Sign in with Facebook is not supported via generic IDP; the Facebook TOS "
171171
"dictate that you must use the Facebook iOS SDK for Facebook login.");
172+
NSAssert(![providerID isEqual:@"apple.com"],
173+
@"Sign in with Apple is not supported via generic IDP; You must use the Apple iOS SDK"
174+
" for Sign in with Apple.");
172175
self = [super init];
173176
if (self) {
174177
_auth = auth;

0 commit comments

Comments
 (0)