How can get 90 day refresh token using Microsoft Graph authentication API

Viewed 113

I'm using the MSAL Browser library Login on js client with using acquireTokenSilent or acquireTokenPopup to get access token and refresh token.

The refresh token I'm getting is valid for 1 day as can be seeing on refresh the access token section: enter image description here

I want to change my login process to get a refresh token that will be valid for 90 days. How is it possible?

My server is .NET Core.

Thanks!

1 Answers

If you need to retain a refresh token for longer, you'll need to use the Authorization Code grant and store it server-side. The expiration of refresh tokens generated using the Implicit grant is fixed at 24 hours.

Related