fix
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user