Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @implementation OverideAWSCognitoIdentityUserPool : AWSCognitoIdentityUserPool
- - (AWSTask<NSString*>*) token {
- NSLog(@"Inside token");
- return [[[super currentUser] getSession:@"alexandre.moreauAepitech.eu" password:@"test42" validationData:nil] continueWithSuccessBlock:^id _Nullable(AWSTask<AWSCognitoIdentityUserSession *> * _Nonnull task) {
- return [AWSTask taskWithResult:task.result.idToken.tokenString];
- }];
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement