How could I generate temporary credentials using Cognito Identity pool for accessing aws services?
问题 I have a cognito user pool and identity pool. I have created an user in user pool. I got the tokens i.e. access, refresh, id tokens using lambda for that user. Now I want to generate the temporary credentials i.e. access key and secrete access key for that user to access the aws services. How could I do this? This is piece of code i used to generate tokens. var authenticationDetails = new cognito.AuthenticationDetails(authenticationData); var userData = { Username : '*****', Pool : userPool }