Skip to content

Commit

Permalink
fix(cli): requiresRefresh function does not respect null
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizencc committed Dec 27, 2024
1 parent 982be5c commit e7b322d
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 e7b322d

Please sign in to comment.