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

Cache generated tokens between program executions. #18

Closed
matecsaj opened this issue Jun 30, 2021 · 1 comment
Closed

Cache generated tokens between program executions. #18

matecsaj opened this issue Jun 30, 2021 · 1 comment
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@matecsaj
Copy link
Owner

Cache generated tokens between program executions to avoid the overhead of getting new tokens when old tokens have not expired.

User tokens last for months, so start with them.

As a security precaution, don't store the credentials used to get tokens in the cache file; perhaps supply the credentials to a one-way hash to create reproducible indexes.

Where should the cache be stored, and should the file be hidden?

If the scopes for the application token change, it will be necessary to flush the old token from the cache. Perhaps there are other reasons for doing a partial or complete flush of the cache. How will the flush be done?

Suggestions or a PR are welcome.

@matecsaj matecsaj added the enhancement New feature or request label Jun 30, 2021
@matecsaj matecsaj added the wontfix This will not be worked on label Jan 2, 2022
@matecsaj
Copy link
Owner Author

matecsaj commented Jan 2, 2022

I've come to realize that not all users will want this. For those that do, I made some helpful changes.

0bf880c

@matecsaj matecsaj closed this as completed Jan 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant