Skip to content

Commit c2b78bf

Browse files
committed
Removes @import
1 parent 68d3ae1 commit c2b78bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ParseUI/Sign In With Apple/PFAppleUtils.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#import "PFAppleUtils.h"
1010
#import "PFAppleAuthenticationProvider.h"
11-
@import AuthenticationServices;
11+
#import <AuthenticationServices/AuthenticationServices.h>
1212
#import <Bolts/Bolts.h>
1313

1414
NSString *const PFAppleUserAuthenticationType = @"apple";
@@ -53,11 +53,11 @@ - (void)authorizationController:(ASAuthorizationController *)controller didCompl
5353

5454
__weak typeof(self) wself = self;
5555

56-
[[[PFUser logInWithAuthTypeInBackground:@"apple"
56+
[[[PFUser logInWithAuthTypeInBackground:PFAppleUserAuthenticationType
5757
authData:@{@"token" : tokenString, @"id" : userId}] continueWithSuccessBlock:^id _Nullable(BFTask<__kindof PFUser *> * _Nonnull t) {
5858
__strong typeof(wself) sself = wself;
59-
[sself.completionSource setResult:@{@"user" : t.result,
60-
@"credential" : cred}];
59+
[sself.completionSource setResult:@{PFAppleAuthUserKey : t.result,
60+
PFAppleAuthCredentialKey : cred}];
6161
sself.strongSelf = nil;
6262
return t;
6363
}] continueWithBlock:^id _Nullable(BFTask * _Nonnull t) {

0 commit comments

Comments
 (0)