Skip to content

Commit 5ba7b20

Browse files
committed
Should callback Apple's error status instead of doing nothing (canceled/failed/invalid/Nothandled/Unknown)
Signed-off-by: for-meng <[email protected]>
1 parent 6568775 commit 5ba7b20

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

FirebaseOAuthUI/Sources/FUIOAuth.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,11 @@ - (void)authorizationController:(ASAuthorizationController *)controller didCompl
399399
}
400400

401401
- (void)authorizationController:(ASAuthorizationController *)controller didCompleteWithError:(NSError *)error API_AVAILABLE(ios(13.0)) {
402-
NSLog(@"%@", error.description);
402+
NSLog(@"%@", error.description);
403+
// canceled/failed/invalid/Nothandled/Unknown
404+
if (_providerSignInCompletion) {
405+
_providerSignInCompletion(nil, error, nil, nil);
406+
}
403407
}
404408

405409
#pragma mark - ASAuthorizationControllerPresentationContextProviding

0 commit comments

Comments
 (0)