diff --git a/packages/core/src/httpAuthSchemes/aws-sdk/resolveAWSSDKSigV4Config.ts b/packages/core/src/httpAuthSchemes/aws-sdk/resolveAWSSDKSigV4Config.ts index a4c991b8cef6..c9726c7df62a 100644 --- a/packages/core/src/httpAuthSchemes/aws-sdk/resolveAWSSDKSigV4Config.ts +++ b/packages/core/src/httpAuthSchemes/aws-sdk/resolveAWSSDKSigV4Config.ts @@ -111,7 +111,7 @@ export const resolveAWSSDKSigV4Config = ( // credentialDefaultProvider should always be populated, but in case // it isn't, set a default identity provider that throws an error if (config.credentialDefaultProvider) { - normalizedCreds = config.credentialDefaultProvider(config as any); + normalizedCreds = normalizeProvider(config.credentialDefaultProvider(config as any)); } else { normalizedCreds = async () => { throw new Error("`credentials` is missing") }; }