File tree 1 file changed +6
-3
lines changed
Parse/Internal/User/AuthenticationProviders/Controller
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 16
16
#import " PFAnonymousUtils.h"
17
17
#import " PFAnonymousAuthenticationProvider.h"
18
18
#import " PFUserController.h"
19
+ #import " PFCurrentUserController.h"
19
20
#import " PFAssert.h"
20
21
21
22
@interface PFUserAuthenticationController () {
@@ -56,9 +57,11 @@ - (void)registerAuthenticationDelegate:(id<PFUserAuthenticationDelegate>)delegat
56
57
});
57
58
58
59
// TODO: (nlutsenko) Decouple this further.
59
- if (![authType isEqualToString: PFAnonymousUserAuthenticationType]) {
60
- [[PFUser currentUser ] synchronizeAuthDataWithAuthType: authType];
61
- }
60
+ [[[PFUser currentUserController ] getCurrentUserAsyncWithOptions: 0 ] continueWithSuccessBlock: ^id (BFTask *task) {
61
+ PFUser *user = task.result ;
62
+ [user synchronizeAuthDataWithAuthType: authType];
63
+ return nil ;
64
+ }];
62
65
}
63
66
64
67
- (void )unregisterAuthenticationDelegateForAuthType : (NSString *)authType {
You can’t perform that action at this time.
0 commit comments