Skip to content

Commit

Permalink
Merge branch 'main' into cdk-destroy-warn
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jan 7, 2025
2 parents 5623879 + 2abc23c commit bb189c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/aws-cdk/lib/api/aws-auth/provider-caching.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export function makeCachingProvider(provider: AwsCredentialIdentityProvider): Aw
return memoize(
provider,
credentialsAboutToExpire,
(token) => token.expiration !== undefined);
(token) => !!token.expiration,
);
}

export function credentialsAboutToExpire(token: AwsCredentialIdentity) {
Expand Down

0 comments on commit bb189c2

Please sign in to comment.