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

apps keys create and update not setting expiration on key #341

Closed
kurtkanaskie opened this issue Dec 1, 2023 · 1 comment · Fixed by #343
Closed

apps keys create and update not setting expiration on key #341

kurtkanaskie opened this issue Dec 1, 2023 · 1 comment · Fixed by #343

Comments

@kurtkanaskie
Copy link
Collaborator

Both "apps keys create" and "apps keys update" have an --expires option, but it doesn't set the expiration on the key, it's always -1.

I think this is an API limitation, as I've not been able to find the API to do this.

@srinandan srinandan linked a pull request Dec 2, 2023 that will close this issue
@kurtkanaskie
Copy link
Collaborator Author

Actually, this is supported using expiresInSeconds property, but cannot setting expiresAt is not supported.

srinandan added a commit that referenced this issue Dec 14, 2023
* bug: fixes missing expiry during update #341

* expires in seconds consistently and for keys create and apps genkey only

* Setting expires consistently for seconds or Apps and AppGroup Apps

* minor linting fix

* Properly reset client response setting

---------

Co-authored-by: Kurt Kanaskie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant