Skip to content

Commit

Permalink
fix(core): wrap credentialDefaultProvider with normalizeProvider (#…
Browse files Browse the repository at this point in the history
…5592)

Fixes: #5591
  • Loading branch information
Steven Yuan authored Dec 16, 2023
1 parent 83a7e72 commit 9faa8ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const resolveAWSSDKSigV4Config = <T>(
// 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") };
}
Expand Down

0 comments on commit 9faa8ad

Please sign in to comment.