Currently, I am utilizing this approach to decode the token and retrieve its expiration date. Here is the code snippet: var decode = Msal.IdToken(localStorage["msal.idtoken"]);
This method is chosen to prevent the need for adding an additional jwtdecode library for angularJS. Our platform relies on MSAL for Active Directory login capabilities.