
Hi, I have a refresh token function (in nodeJS) for external system. Function is being run with crone every 2h. I have 2 global variables S_TOKEN and S_REFRESH_TOKEN and they are initially set to correct values. In my function I use: const refreshToken = process.env.S_REFRESH_TOKEN; with http request and I can see I am getting a correct pair of new token and refresh token. Then I try to update global env values with: process.env.S_TOKEN = responseData.token; process.env.S_REFRESH_TOKEN = responseData.refreshToken; Everything runs without errors, but when I check global variables they are not changing, but every 2h tokens get refreshed, but when I check logs it seems like S_TOKEN and S_REFRESH_TOKEN are became local env variables (although I have empty function env variables box in function settings).
Recommended threads
- my database attribute stuck in processin...
when i created attributes in collection 3 of those attributes become "processing", and they are not updating, the worst thing is that i cant even delete them s...
- Is Quick Start for function creation wor...
I am trying to create a Node.js function using the Quick Start feature. It fails and tells me that it could not locate the package.json file. Isn't Quick Start ...
- Forever Processing Issue
I encountered an issue when creating attributes in the collections . if you create an attribute of type string for example and choose a size of 200 or 250 or a...
