0
我試圖從AWSCognitoIdentityUser獲得idToken,但是continue塊永遠不會被調用。這可能是什麼原因?AWSCognitoIdentityUser getSession沒有調用
AWSCognitoIdentityUserPool *pool = [AWSCognitoIdentityUserPool CognitoIdentityUserPoolForKey:@"UserPool"];
AWSCognitoIdentityUser *user = [pool currentUser];
[[user getSession] continueWithBlock:^id _Nullable(AWSTask<AWSCognitoIdentityUserSession *> * _Nonnull task) {
//Never called
return nil;
}];