Danilo, javascript aws-sdk, :
var creds = new AWS.CognitoIdentityCredentials({
IdentityPoolId:
})
AWS.config.update({
region: 'us-east-1',
credentials: creds
});
var lambda = new AWS.Lambda();
, , :
creds.params['IdentityId'] = output.identityId;
creds.params['Logins'] = {};
creds.params['Logins']['cognito-identity.amazonaws.com'] = output.token;
creds.expired = true;
output - LambdAuthLogin Lambda.