feat: add flag for token lifetime (#5385)

This commit is contained in:
Garrett Delfosse
2022-12-12 15:39:31 -05:00
committed by GitHub
parent 760419a965
commit 40a5c0476f
9 changed files with 136 additions and 50 deletions
+2 -1
View File
@@ -40,7 +40,8 @@ const (
)
type CreateTokenRequest struct {
Scope APIKeyScope `json:"scope"`
Lifetime time.Duration `json:"lifetime"`
Scope APIKeyScope `json:"scope"`
}
// GenerateAPIKeyResponse contains an API key for a user.