Closed
Description
OS Information
-
OS: Debian 11 (production VM running Coder)
-
Architecture:
-
coder --version
:root@coder-v2:~/coder# coder --version Coder v0.0.0-devel+1df943e Mon Apr 18 23:01:49 UTC 2022 https:/github.com/coder/coder/commit/1df943e010cdf576fb169293db02daf93f3f268e
Steps to Reproduce
- Set up a Coder deployment somewhere and keep it running (or maybe this happens if you are logged in to dev.coder.com)
- Log in to that deployment (
coder login <url>
) - Wait 3 days (unsure of interval), or simulate expiration somehow in the code
- Run
coder ws ls
Expected
I can use a long-lived API token or session on the Coder host, or even my developer laptop.
Actual
My key expires every 1-3 days. I'm not quite sure the interval.
$ coder ws ls
status code 401: api key expired at "2022-04-29 18:52:01.463991 +0000 UTC"