From 93cb2942b68acee7d22b4ef2b51c827e9e092b92 Mon Sep 17 00:00:00 2001 From: Steven Yuan Date: Sat, 7 Oct 2023 21:01:12 -0700 Subject: [PATCH] fix(experimentalIdentityAndAuth): remove extra `$` from `HttpApiKeyAuthSigner` --- .changeset/silver-comics-fetch.md | 5 +++++ .../experimental-identity-and-auth/src/httpApiKeyAuth.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/silver-comics-fetch.md diff --git a/.changeset/silver-comics-fetch.md b/.changeset/silver-comics-fetch.md new file mode 100644 index 00000000000..9fff0314880 --- /dev/null +++ b/.changeset/silver-comics-fetch.md @@ -0,0 +1,5 @@ +--- +"@smithy/experimental-identity-and-auth": patch +--- + +Remove extra `$` from `HttpApiKeyAuthSigner` diff --git a/packages/experimental-identity-and-auth/src/httpApiKeyAuth.ts b/packages/experimental-identity-and-auth/src/httpApiKeyAuth.ts index f9f9e66dfe6..4eaa287db40 100644 --- a/packages/experimental-identity-and-auth/src/httpApiKeyAuth.ts +++ b/packages/experimental-identity-and-auth/src/httpApiKeyAuth.ts @@ -37,7 +37,7 @@ export class HttpApiKeyAuthSigner implements HttpSigner { clonedRequest.query[signingProperties.name] = identity.apiKey; } else if (signingProperties.in === HttpApiKeyAuthLocation.HEADER) { clonedRequest.headers[signingProperties.name] = signingProperties.scheme - ? `$${signingProperties.scheme} $${identity.apiKey}` + ? `${signingProperties.scheme} ${identity.apiKey}` : identity.apiKey; } else { throw new Error(