[Blazor-WASM 3.2 Preview 2] Msal: Can not set CacheLocation in configuration. #19958
Labels
area-blazor
Includes: Blazor, Razor Components
feature-blazor-wasm
This issue is related to and / or impacts Blazor WebAssembly
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Status: Resolved
I have a wasm standalone app that uses AzureAD and I am trying to set the cache configuration to "sessionStorage" but tokens are always stored in localStorage.
When I set the cacheLocation directly it causes a
System.NullReferenceException
and when I try to set the configuration as :
It appears to have no effect and the cache location is still in Local Storage and user auth state persists across browser tabs and after closing/reopening the browser.
https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-core/src/Configuration.ts#L50
The text was updated successfully, but these errors were encountered: