I am using heroku environment variables to store oauth2 tokens for authentication with a webhook i've created. As these tokens update, i need to update the environment variables from within the script after i retrieve them.
I've tried the code below, but when i run 'heroku config' from CLI, the old tokens show up.
process.env.GOOGLE_ACCESS_TOKEN = JSON.parse(body).access_token;