I'm struggling to get a solid flow with a temporary acces token and an refresh token to update the acces token.
Background:
I've build an middleware function in NodeJS running on GCF to get data from system A to B. This done with the help of 5 cloud functions that has an event driven workflow. Basically: could scheduler -> function -> pub/sub -> function.
- System A: "Fixed" bearer token, stored in Secret Manager.
- System B: Access token (DB) and refresh token(SM).
Now i notice that my token function not always works, sometimes an secret manager error that the api is not enabled (out of the blue... and it is enabled) only thing that works is delete the function and redeploy. Is this due the fact that i'm over the 3000 versions?
I hope somebody can give me some insight.