I'm using MSAL library for in our React website (using msal-react) and check user auth using acquireTokenSilent
.
As we see on banking and other websites, I want a warning that says "You'll be logged out in 5 minutes" and ideally with "Continue browsing" or "Log off" buttons.
Is there any way to implement this warning without manually checking and doing logic on the token's expiresOn
date for every request?