const cachedToken = yield* Cache.makeWith({
capacity: 1,
lookup: () => getToken,
timeToLive: Exit.match({
onFailure: () => "1 second",
onSuccess: (token) => token.expires_in,
}),
});
const cachedToken = yield* Cache.makeWith({
capacity: 1,
lookup: () => getToken,
timeToLive: Exit.match({
onFailure: () => "1 second",
onSuccess: (token) => token.expires_in,
}),
});