I’m implementing a rule that accesses another secured rest api which requires (client credentials) login. I need to cache the credentials somehow.
Having read the docs, the only way to do this seems to be using the “global” object. This works fine. HOWEVER: the global object recycles very fast (after 30 seconds?)
This seems to be related: https://webtask.io/docs/containers
1) In Auth0 rules, are there any other alternatives to storing shared stuff such as access tokens? The access token would normally be valid for a couple of hours, but since the global object is short-lived I cannot cache them for long…
2) Do I have any way to control the webtask recycling strategy?
3) I assume that the configuration object is immutable, so it is not an option to use this as a “store”?