From ee9b7cd813be0ccb6fa8355f8d4b2e41fb43a2b3 Mon Sep 17 00:00:00 2001 From: jlenon7 Date: Mon, 10 Nov 2025 09:57:25 -0300 Subject: [PATCH] chore: update dependencies --- package-lock.json | 4 ++-- package.json | 2 +- src/drivers/AwsSqsDriver.ts | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9deaa3f..4fa7506 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@athenna/queue", - "version": "5.15.0", + "version": "5.16.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@athenna/queue", - "version": "5.15.0", + "version": "5.16.0", "license": "MIT", "dependencies": { "@aws-sdk/client-sqs": "^3.859.0" diff --git a/package.json b/package.json index 633a0d0..275c432 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/queue", - "version": "5.15.0", + "version": "5.16.0", "description": "The Athenna queue handler.", "license": "MIT", "author": "João Lenon ", diff --git a/src/drivers/AwsSqsDriver.ts b/src/drivers/AwsSqsDriver.ts index d831eb0..436420a 100644 --- a/src/drivers/AwsSqsDriver.ts +++ b/src/drivers/AwsSqsDriver.ts @@ -153,8 +153,11 @@ export class AwsSqsDriver extends Driver { * If the AWS_SESSION_TOKEN is set, it means that the session is running inside * AWS. In this case, we can't set any options to SQSClient, otherwise the client * will fail to authenticate. + * + * Also if accessKeyId or secretAccessKey is not defined, we should also not set + * the credentials options and let the SDK try to solve the authentication. */ - if (Is.Undefined(this.awsAccessKeyId) || Env('AWS_SESSION_TOKEN')) { + if (!Is.Defined(this.awsAccessKeyId) || Env('AWS_SESSION_TOKEN')) { sqsClientOptions = {} }