This commit is contained in:
Quan HL
2024-04-30 15:47:14 +07:00
parent 6144a9c164
commit c8571af129
+1 -2
View File
@@ -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({