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(