OfficeDev / office-js-helpers

[ARCHIVED] A collection of helpers to simplify development of Office Add-ins & Microsoft Teams Tabs
MIT License
126 stars 56 forks source link

Is it possible to refresh an access token without requesting user login? #70

Open indriesergiu opened 6 years ago

indriesergiu commented 6 years ago

Using adal.js with implicit flow it is possible to refresh the obtained access token (without a refresh token) and thus prolong the user session without requiring user login. This is possible until the Azure AD session cookies expire. Is this possible with office-js-helpers? I would like to keep the user logged in as long as possible.

WrathOfZombies commented 6 years ago

I haven't implemented hidden iframe refresh. Perhaps you could send a PR for the same? Else i'll have to put this on the backlog.

Devang142 commented 5 years ago

Any updates? I also want to implement same feature. Currently I am using MSAL js with add-in, which have one method "acquireTokenSilent" for automated renewal of token, but I want to use office-js-helpers as it is more compatible for add-in.