Struggling with MSAL v4-Angular 21. User needs to re-login if all browser tabs closed and browser relaunched even after using localStorage for cache
Summary This incident analyzes why an Angular 21 application using MSAL v4 forces users to re‑authenticate after closing all browser tabs and relaunching the browser, even though BrowserCacheLocation.LocalStorage is configured. The behavior surprises many engineers because it looks like a persistence failure, but the real cause is deeper inside MSAL’s token model. Root Cause The … Read more