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
- [FEAT.] Migrate to Bun 1.3.7 for appwrit...
Bun 1.3.7 Fixes a major bug which increases async/await request speed by 35% https://x.com/bunjavascript/status/2011901977631064495 https://bun.com/blog/bun-v1...
- Appwrite.Network UltraDNS
I am getting a false positive malware issue when trying to access appwrite.network domain. They are currently classifying it as such. Is this something that I a...
- login With OAuth Failed
login With OAuth Failed: when i cliick to login with any of the following (facebook, gmail or apple) am being redirected out of the app to enter my detail, afte...