Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

periodic invalidation? #53

Open
amonks opened this issue Jul 21, 2023 · 1 comment
Open

periodic invalidation? #53

amonks opened this issue Jul 21, 2023 · 1 comment
Labels
idea Maybe we should build something like this? needs thought We have some decisions to make before moving on this.

Comments

@amonks
Copy link
Owner

amonks commented Jul 21, 2023

this is easy enough to implement, but I don't want to add to the API surface unless there's a real use case

@amonks amonks added needs thought We have some decisions to make before moving on this. idea Maybe we should build something like this? labels Jul 21, 2023
@cgsdev0
Copy link
Contributor

cgsdev0 commented Jul 22, 2023

I have a potential use case for this

I use run to run some twitch-api-consuming processes

however, twitch's oauth tokens expire after 4 hours

it would be neat if i could invalidate my refresh-tokens task every 4 hours (which could be a trigger to invalidate the tasks that use the token)

https://github.com/cgsdev0/dotfiles/blob/d976e9a58450bbcd460f007efec9168a4aeb25dd/tasks.toml#L6-L12

buuuuuut, i could also just make refresh-tokens a "long" task and add a sleep 14400 to the cmd, so maybe it's not really needed 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea Maybe we should build something like this? needs thought We have some decisions to make before moving on this.
Projects
None yet
Development

No branches or pull requests

2 participants