ID Token - Increase Timeout from Angular/MSAL

Kevin Azure 141 Reputation points
2020-03-15T16:54:17.65+00:00

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.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,473 questions
0 comments No comments
{count} votes

Accepted answer
  1. saurabh sharma 76 Reputation points
    2020-03-16T21:01:45.69+00:00

    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