i have the following use case
i have the following use case
in a flow i have two consecutive scripts:
1. fetch auth token (cached for 1 hour)
2. do request with auth token
this works well, but there is an edge case where the cached auth token is invalid which means we need to force refresh it
to solve this i thought about wrapping both steps with a loop. in case of an invalid auth token the loop would iterate once more. but it would need to override the cache and force to run the first script to fetch the auth token
any ideas for an elegant solution?
1 Reply
@rubenf one solution without a loop i can see is the following.
two scripts:
1. Refresh Token
2. Make Request
flow with 4 steps:
1. Refresh Token (cached for 1 hour)
2. Make Request
3. (optional) If Request failed: Refresh Token (no cache)
4. (optional) If Request failed: Make Request
the problem is though that I can't set different cache settings for the same script in a flow