mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add flag for token lifetime (#5385)
This commit is contained in:
@@ -206,6 +206,8 @@ export interface CreateTestAuditLogRequest {
|
||||
|
||||
// From codersdk/apikey.go
|
||||
export interface CreateTokenRequest {
|
||||
// This is likely an enum in an external package ("time.Duration")
|
||||
readonly lifetime: number
|
||||
readonly scope: APIKeyScope
|
||||
}
|
||||
|
||||
@@ -303,6 +305,7 @@ export interface DeploymentConfig {
|
||||
readonly api_rate_limit: DeploymentConfigField<number>
|
||||
readonly experimental: DeploymentConfigField<boolean>
|
||||
readonly update_check: DeploymentConfigField<boolean>
|
||||
readonly max_token_lifetime: DeploymentConfigField<number>
|
||||
}
|
||||
|
||||
// From codersdk/deploymentconfig.go
|
||||
|
||||
Reference in New Issue
Block a user