mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: Longer lived api keys for cli (#1935)
* feat: Longer lived api keys for cli * feat: Refresh tokens based on their lifetime set in the db * test: Add unit test for refreshing
This commit is contained in:
@@ -0,0 +1 @@
|
||||
ALTER TABLE api_keys DROP COLUMN lifetime_seconds;
|
||||
@@ -0,0 +1,2 @@
|
||||
-- Default lifetime is 24hours.
|
||||
ALTER TABLE api_keys ADD COLUMN lifetime_seconds bigint default 86400 NOT NULL;
|
||||
Reference in New Issue
Block a user