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

Add expiry for API key #1531

Open
keshav-space opened this issue Aug 1, 2024 · 0 comments
Open

Add expiry for API key #1531

keshav-space opened this issue Aug 1, 2024 · 0 comments

Comments

@keshav-space
Copy link
Member

We can have a default duration for expiry or allow users to set their own expiry date, or both.

Another idea is to have the key with dynamic expiry based on usage, using some decay function. If the key is not used for a certain duration, it should expire.
However, this approach seems unpredictable from a consumer's perspective. As a consumer, it is much easier for me if I have certainty about when my API key will stop working so that I can plan and update my scripts with a new key in advance. This key decay may also lead to behaviors like periodic scripts hitting the API just to keep the key alive, which would be annoying for both producer and consumers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant