Skip to content

Commit 9be3719

Browse files
authored
Fix cache options being ignored
1 parent 1ab16b0 commit 9be3719

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)