Skip to content
New issue

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

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

Already on GitHub? # to your account

[Bug]: cannot set user provided API key to expire "never" if key previously had an expiry date #4293

Closed
1 task done
normunds-wipo opened this issue Oct 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@normunds-wipo
Copy link
Contributor

What happened?

If we use user_provided keys, we have an option to set the key from UI and provide the expiry period. However once we set a particular expiry period we cannot set it to "never" anymore, the expiry period stays as it was.

This is just for the record, I have a fix that we use in our deployment and I will submit a pull request to fix this issue

Steps to Reproduce

  1. enter custom API key and set the expiry to say 12 hours
  2. check the key in database, the expireAt date is set correctly 12 hours ahead
  3. enter the same custom API key and set the expiry to "never"
  4. check the key in database, the expireAt date has not changed (expected no expireAt field)

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Screenshots

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@normunds-wipo normunds-wipo added the bug Something isn't working label Oct 1, 2024
normunds-wipo added a commit to normunds-wipo/LibreChat that referenced this issue Oct 1, 2024
normunds-wipo added a commit to normunds-wipo/LibreChat that referenced this issue Oct 1, 2024
@danny-avila
Copy link
Owner

Thank you!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants