How to get the Cognito Identity id in AWS Lambda

后端 未结 7 1345
[愿得一人]
[愿得一人] 2020-12-28 15:46

How can I get the identity id of the user (logged in by AWS Cognito) that invoked an AWS Lambda function? Do I have to use the SDK on the Lambda function to get the identity

7条回答
  •  臣服心动
    2020-12-28 16:35

    In AWS javascript SDK inside lambda function just use context.identity.cognitoIdentityId It is working for me

提交回复
热议问题