update getAwsAuthToken to use parameters as object (#330)

* update getAwsAuthToken to use parameters as object

* update speech utils version
This commit is contained in:
Hoan Luu Huu
2024-06-15 19:10:58 +07:00
committed by GitHub
parent 6041b1d595
commit 4337a55a27
3 changed files with 9 additions and 6 deletions

View File

@@ -183,7 +183,10 @@ const testAwsStt = async(logger, getAwsAuthToken, credentials) => {
} else if (roleArn) {
client = new TranscribeClient({
region,
credentials: await getAwsAuthToken(null, null, region, roleArn),
credentials: await getAwsAuthToken({
region,
roleArn
}),
});
} else {
client = new TranscribeClient({region});