From c8571af1294495883bf0f9eb1e4c8f074912dc9e Mon Sep 17 00:00:00 2001 From: Quan HL Date: Tue, 30 Apr 2024 15:47:14 +0700 Subject: [PATCH] wip --- lib/get-aws-sts-token.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/get-aws-sts-token.js b/lib/get-aws-sts-token.js index 1f7060b..223155f 100644 --- a/lib/get-aws-sts-token.js +++ b/lib/get-aws-sts-token.js @@ -18,8 +18,7 @@ async function getAwsAuthToken( const roleToAssume = { RoleArn: roleArn, RoleSessionName: 'Jambonz_Speech', DurationSeconds: EXPIRY}; const command = new AssumeRoleCommand(roleToAssume); - const response = await stsClient.send(command); - data = response; + data = await stsClient.send(command); } else { /* access token not found in cache, so generate it using STS */ const stsClient = new STSClient({