
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 DBs disappeared from my console and g...
Hello Team, Out of the blue, my express app started encountering 401 errors in fetching data. Upon logging into my console, I cannot see my databases anymore ...
- Appwrite sites domain not updating
Whenever I commit and sync changes to my github repo which has my website. If i try to go to the domain that was given to me "https://nameofwebsite.appwrite.net...
- Sites - ETA
Hi I've requested Sites and I am currently on waiting list. Whats average ETA to be this available from requesting it? I am on Free tier atm.
