AWS Cognito Error: 'identityPoolId' failed to satisfy constraint

前端 未结 3 958
猫巷女王i
猫巷女王i 2020-12-14 13:55

I am new Cognito. I am trying to implement AWS Cognito using Lambda. This is the tutorial I am following.

AmazonCognitoIdentityClient client =
                      


        
相关标签:
3条回答
  • 2020-12-14 14:59

    You are using a Cognito user pool id as the identity pool id. They are two different things. Identity pool ids are of format us-east-1:XXXX-XXXXXX-XXXX-XXXX.

    To get an identity pool id you should use the "Manage Federated Identities" parts of the Cognito console not the "Manage User Pools" section. Hope this helps.

    0 讨论(0)
  • 2020-12-14 14:59

    Just a note: you can also find the correct user pool app client id in your project's aws-exports.js. The property name is "aws_user_pools_web_client_id"

    0 讨论(0)
  • 2020-12-14 15:02

    You can find it in User Pools > Federated Identities > App clients > App client id

    0 讨论(0)
提交回复
热议问题