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

Renew token #163

Open
jl-wynen opened this issue Oct 13, 2023 · 0 comments
Open

Renew token #163

jl-wynen opened this issue Oct 13, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jl-wynen
Copy link
Collaborator

Tokens are only valid for 1h. But it is possible to get a new one while the current one is still valid. Client should automatically ask for a new one when needed.

Need to determine what triggers the renewal. E.g.:

  1. Before or after any request.
  2. Like 1 but only after some time has passed since the last one. What would that time be? 30min? 50min? Ultimately this depends on how often users make requests which we cannot predict.
  3. Do it periodically. This would require a separate thread and would do HTTP requests without the user knowing. I'd avoid that. We should be explicit.
  4. Require the user to do it. The user should definitely have the option to trigger renewal but for most use cases, this is unergonomic.
@jl-wynen jl-wynen added the enhancement New feature or request label Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant