From 853c1c21cef4192cb1db32be2a014f6698b1a8c0 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Mon, 23 Sep 2024 23:48:07 +0400 Subject: [PATCH] Update util.ts --- src/custom/util.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/custom/util.ts b/src/custom/util.ts index efb4308..22aeab7 100644 --- a/src/custom/util.ts +++ b/src/custom/util.ts @@ -66,9 +66,9 @@ export const performAwsIamLogin = async (baseUrl: string, identityId: string, re } ); - let host = signOpts.host; - if (signOpts.host) { - host = `${signOpts.host.replace(".sts", `.sts.${region}.`)}`; + let host = (signOpts as any)["Host"]; + if (signOpts as any["Host"]) { + host = `${(signOpts as any)["Host"].replace(".sts", `.sts.${region}.`)}`; } console.log(signOpts);