Store a JWT to be pulled from a worker

I'm need a worker to attach a JWT in the headers of a call to a 3rd party API. This JWT should be refreshed every ~30min. My plan was to have a chron job triggering a worker to generate a new JWT. But i'm unsure of where i should store that JWT so that my other worker making the API calls can retrieve it. Secrets cannot be set by worker
2 Replies
Sam
Sam12mo ago
I think the best solution for this is KV.
poro
poroOP12mo ago
it works well. thank you
Want results from more Discord servers?
Add your server