ID Token - Increase Timeout from Angular/MSAL

Kevin Azure 141 Reputation points

I am using Angular App with MSAL which Authenticate user through Azure AD

We are getting ID Token & Access Code in return.

BUT after 1 hour the ID Token is expiring.

Can I INCREASE the Timeout of ID Token at Client-side Or Server-side?

Please advice.

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,873 questions
0 comments No comments
{count} votes

Accepted answer
  1. saurabh sharma 76 Reputation points

    Id token lifetime is by default 1 hour and you can use acquireTokenSilentAsync method to renew id tokens as long as AAD user session is active. If AAD session expires the token renewal will fail making you to have an interactive call for user sign-in. You can however configure user session and id token lifetime to make the user logged in by choosing "Keep me Signed-In" as documented here. You can also configure lifetime policy for id tokens as described here.

0 additional answers

Sort by: Most helpful