3
AWS Cognitoの資格情報の設定に問題があります。AWS CognitoがCognitoIdentityCredentialsで資格情報を設定できない
私は、ユースケース4
AWS.config.credentials = new AWS.CognitoIdentityCredentials({
IdentityPoolId : '...', // your identity pool id here
Logins : {
// Change the key below according to the specific region your user pool is in.
'cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>' : result.getIdToken().getJwtToken()
}
});
上AWS amazon-cognito-identity-jsからのコードの下に、私は私がCognitoIdentityCredentials
方法で正しいIdentityPoolId
とLogins
を送ってることを確認していましたが、私はリターンとしてaccessKeyIdとはsessionTokenに未定義得ます。
以下は私が入手したものです。 CognitoIdentityCredentials {expired: true, expireTime: null, accessKeyId: undefined, sessionToken: undefined, params: Object…}
これを修正する方法はありますか?