feat!: add --default-token-lifetime (#14631)

This commit is contained in:
Ethan
2024-09-18 21:23:42 +10:00
committed by GitHub
parent 6de59371ea
commit fccf6f1e0e
14 changed files with 165 additions and 38 deletions
+11
View File
@@ -910,6 +910,17 @@ Periodically check for new releases of Coder and inform the owner. The check is
The maximum lifetime duration users can specify when creating an API token.
### --default-token-lifetime
| | |
| ----------- | ------------------------------------------ |
| Type | <code>duration</code> |
| Environment | <code>$CODER_DEFAULT_TOKEN_LIFETIME</code> |
| YAML | <code>defaultTokenLifetime</code> |
| Default | <code>168h0m0s</code> |
The default lifetime duration for API tokens. This value is used when creating a token without specifying a duration, such as when authenticating the CLI or an IDE plugin.
### --swagger-enable
| | |