diff --git a/src/custom/auth.ts b/src/custom/auth.ts index 91a82f8..db3ec3b 100644 --- a/src/custom/auth.ts +++ b/src/custom/auth.ts @@ -30,7 +30,7 @@ export default class AuthClient { throw new Error("Identity ID is required for AWS IAM authentication"); } - const iamRequest = await performAwsIamLogin(this.baseUrl, identityId, await getAwsRegion()); + const iamRequest = await performAwsIamLogin(await getAwsRegion()); const res = await this.apiClient.apiV1AuthAwsAuthLoginPost({ apiV1AuthAwsAuthLoginPostRequest: { diff --git a/src/custom/util.ts b/src/custom/util.ts index 808445a..84f3b3c 100644 --- a/src/custom/util.ts +++ b/src/custom/util.ts @@ -31,9 +31,7 @@ export const getAwsRegion = async () => { } }; -export const performAwsIamLogin = async (baseUrl: string, identityId: string, region: string) => { - const body = "Action=GetCallerIdentity&Version=2011-06-15"; - +export const performAwsIamLogin = async (region: string) => { AWS.config.update({ region });