Thanks for the excellent example! I've been trying to modify it to get a refresh_token in addition to the access_token. I tried modifying the scope parameter in auth_start.js:22 to 'offline_access' but that didn't seem to do the trick. Any advice would be greatly appreciated!
const authorizationURI = oauth.authorizationCode.authorizeURL({
redirect_uri: config.redirect_uri,
/* Specify how your app needs to access the user’s account. */
scope: 'offline_access',
/* State helps mitigate CSRF attacks & Restore the previous state of your app */
state: `url=${redirectUrl}&csrf=${csrfToken}`,
})
Thanks for the excellent example! I've been trying to modify it to get a refresh_token in addition to the access_token. I tried modifying the scope parameter in auth_start.js:22 to 'offline_access' but that didn't seem to do the trick. Any advice would be greatly appreciated!