I am currently trying to develop an SPA application with a webapi, I am using msal for login. The flow is the user logs in, gets an idtoken (used to authorize for my api), gets an access token (for graph api) using acquiretokensilent method. I renew the idToken right before an hour using acquiretokensilent by passing clientID in scopes. But still the I am logged out after the idToken expires. I see that it doesn't get refreshed in the browser storage.
SO my question is, is there anyway I can renew the id Token and keep the user logged in? Any help will be great.