Skip to content

Commit bd8240e

Browse files
committed
fix(auth): condition if (!params.cache) was treating undefined as "cache disabled", when it should only disable cache when explicitly set to false.
1 parent ae55c4a commit bd8240e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/auth/src/lib/AuthManager/try-getters/tryGetCachedDelegationAuthSig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function tryGetCachedDelegationAuthSig(params: {
1313
cache?: boolean; // If false, always generate a new auth sig
1414
}) {
1515
// If cache is explicitly disabled, skip cache reading and generate new auth sig
16-
if (!params.cache) {
16+
if (params.cache === false) {
1717
_logger.info(
1818
'tryGetCachedDelegationAuthSig: Cache disabled, generating new delegation auth sig.',
1919
{

0 commit comments

Comments
 (0)