Skip to content

Commit 7a67374

Browse files
author
Tiago Brenck
authored
Merge pull request #162 from deisterhold/patch-1
Fix cache options being ignored
2 parents 1ab16b0 + 9be3719 commit 7a67374

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Microsoft.Identity.Web/Client/TokenCacheProviders/InMemory/MSALAppMemoryTokenCacheProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public MSALAppMemoryTokenCacheProvider(IMemoryCache cache,
6060
MSALMemoryTokenCacheOptions option,
6161
IOptionsMonitor<AzureADOptions> azureAdOptionsAccessor)
6262
{
63-
if (option != null)
63+
if (option == null)
6464
{
6565
this.CacheOptions = new MSALMemoryTokenCacheOptions();
6666
}
@@ -132,4 +132,4 @@ private void AppTokenCacheAfterAccessNotification(TokenCacheNotificationArgs arg
132132
}
133133
}
134134
}
135-
}
135+
}

0 commit comments

Comments
 (0)