How to do it in Passport.js ?:
When the access token expires, you can use refresh_token to “refresh” your access and get another access_token. To use refresh_token you need to make a POST request for our marker endpoint using the grant_type parameter set to refresh_token:
https:
source
share