passport.js - Passport-azure-ad passport plug-in refresh the token -


i'm working on outlook add-in using ms graph api. in add-in, i'm using azuread-openidconnect passport plug-in authenticate users using oidc strategy on azure-ad v2 endpoint.

i'm running typical issue access token expired, , need use refresh token date access token. docks (https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-protocols-oauth-code) can check , refresh token manually. however, assume functionality has been baked passport plug-in. if how go checking , refreshing token plug-in?

there's no method in passport-azure-ad that. passport's role authorize initial access token, can used access apis (including refresh token api) @ provider.

so may need refresh these tokens yourself, or using separate library passport-oauth2-refresh.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -