Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @implementation OverideAWSCognitoIdentityUserPool : AWSCognitoIdentityUserPool
  2.  
  3.     - (AWSTask<NSString*>*) token {
  4.         NSLog(@"Inside token");
  5.         return [[[super currentUser] getSession:@"alexandre.moreauAepitech.eu" password:@"test42" validationData:nil] continueWithSuccessBlock:^id _Nullable(AWSTask<AWSCognitoIdentityUserSession *> * _Nonnull task) {
  6.             return [AWSTask taskWithResult:task.result.idToken.tokenString];
  7.         }];
  8.     }
  9.  
  10. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement