From 0c84c2cf13603218b614e487bf70f62936d32147 Mon Sep 17 00:00:00 2001 From: Jacob Williamson Date: Tue, 20 Jan 2026 09:18:05 -0500 Subject: [PATCH 1/2] fix(client): Correctly set access token when instantiating AcquiaDAM class When passing both a custom client and an access token to the AcquiaDAM class, the access token will now be properly set. --- src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 4622c66..b2d25d9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -47,7 +47,11 @@ export default class AcquiaDAM { * @param params Information for creating the client */ public constructor(params?: AcquiaDAMParams) { - this._client = params?.client ?? new ApiClient(params?.accessToken) + this._client = params?.client ?? new ApiClient() + + if (params?.accessToken) { + this._client.accessToken = params.accessToken + } } /** From a00e3977616d905cf826abc3be7a43fe90ad6441 Mon Sep 17 00:00:00 2001 From: Jacob Williamson Date: Tue, 20 Jan 2026 09:22:55 -0500 Subject: [PATCH 2/2] Add changeset --- .changeset/tame-rockets-help.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/tame-rockets-help.md diff --git a/.changeset/tame-rockets-help.md b/.changeset/tame-rockets-help.md new file mode 100644 index 0000000..9de333f --- /dev/null +++ b/.changeset/tame-rockets-help.md @@ -0,0 +1,5 @@ +--- +'acquia-dam-sdk': patch +--- + +Access Token will now be set correctly when passing both a custom client and an access token to the AcquiaDAM constructor