AWS Cognito Invalid identity pool configuration

前端 未结 7 853
半阙折子戏
半阙折子戏 2020-12-31 02:10

I am using the AWS Javascript API and trying to get the assigned cognito id:

AWS.config.credentials.get(function(err) {
    if (!err) {
        console.log(\         


        
7条回答
  •  渐次进展
    2020-12-31 02:42

    The most common reason for this error is your roles aren't set up to trust your identity pool. You should confirm that the identity pool id listed in your trust relationships matches the identity pool you are using.

    More info on trust relationships in Amazon Cognito can be found in our developer guide.

提交回复
热议问题