File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
ParseUI/Sign In With Apple Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 8
8
9
9
#import " PFAppleUtils.h"
10
10
#import " PFAppleAuthenticationProvider.h"
11
- @ import AuthenticationServices;
11
+ # import < AuthenticationServices/AuthenticationServices.h >
12
12
#import < Bolts/Bolts.h>
13
13
14
14
NSString *const PFAppleUserAuthenticationType = @" apple" ;
@@ -53,11 +53,11 @@ - (void)authorizationController:(ASAuthorizationController *)controller didCompl
53
53
54
54
__weak typeof (self) wself = self;
55
55
56
- [[[PFUser logInWithAuthTypeInBackground: @" apple "
56
+ [[[PFUser logInWithAuthTypeInBackground: PFAppleUserAuthenticationType
57
57
authData: @{@" token" : tokenString, @" id" : userId}] continueWithSuccessBlock: ^id _Nullable (BFTask<__kindof PFUser *> * _Nonnull t) {
58
58
__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}];
61
61
sself.strongSelf = nil ;
62
62
return t;
63
63
}] continueWithBlock: ^id _Nullable (BFTask * _Nonnull t) {
You can’t perform that action at this time.
0 commit comments