Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //gUser is the instance of GIDGoogleUser who has successfully signed in
- NSString *gClientId = [GGLContext sharedInstance].configuration.clientID;
- [PFCloud callFunctionInBackground:@"getSessionToken"
- withParameters:@{@"idToken":guser.authentication.idToken,
- @"GClientId":gClientId}
- block:^(NSString *sessionToken, NSError * _Nullable error) {
- assert(!error);
- assert(sessionToken);
- [PFUser becomeInBackground:sessionToken
- block:^(PFUser * _Nullable user, NSError * _Nullable error) {
- assert(!error);
- [self.busyIndicator stopAnimating];
- //Jump to Main Screen
- [self moveToMainScreen];
- }];
- }];
Add Comment
Please, Sign In to add comment