From 5f0750155c7501a238ed31fe2bd51ccfa07a9562 Mon Sep 17 00:00:00 2001 From: Steven Yuan Date: Sat, 7 Oct 2023 20:58:49 -0700 Subject: [PATCH] fix(experimentalIdentityAndAuth): add await to `signer.sign()` in `httpSigningMiddleware` --- .changeset/silent-colts-flow.md | 5 +++++ .../src/middleware-http-signing/httpSigningMiddleware.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/silent-colts-flow.md diff --git a/.changeset/silent-colts-flow.md b/.changeset/silent-colts-flow.md new file mode 100644 index 00000000000..f4408828cf7 --- /dev/null +++ b/.changeset/silent-colts-flow.md @@ -0,0 +1,5 @@ +--- +"@smithy/experimental-identity-and-auth": patch +--- + +Await `signer.sign()` in `httpSigningMiddleware` diff --git a/packages/experimental-identity-and-auth/src/middleware-http-signing/httpSigningMiddleware.ts b/packages/experimental-identity-and-auth/src/middleware-http-signing/httpSigningMiddleware.ts index 9d2acdbc52d..1181b132ce3 100644 --- a/packages/experimental-identity-and-auth/src/middleware-http-signing/httpSigningMiddleware.ts +++ b/packages/experimental-identity-and-auth/src/middleware-http-signing/httpSigningMiddleware.ts @@ -52,6 +52,6 @@ export const httpSigningMiddleware =