diff options
author | Rutger Broekhoff | 2024-01-02 21:38:45 +0100 |
---|---|---|
committer | Rutger Broekhoff | 2024-01-02 21:38:45 +0100 |
commit | ab988b1dae67a04dbcfc7af14052a1b033946029 (patch) | |
tree | 046c674d10c4edb31398b9e802246ea1c197a52e /cmd/git-lfs-authenticate | |
parent | f8b10c51e3f850203201e2cf926f5203192f93c7 (diff) | |
download | gitolfs3-ab988b1dae67a04dbcfc7af14052a1b033946029.tar.gz gitolfs3-ab988b1dae67a04dbcfc7af14052a1b033946029.zip |
Make tokens short-lived
Diffstat (limited to 'cmd/git-lfs-authenticate')
-rw-r--r-- | cmd/git-lfs-authenticate/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/git-lfs-authenticate/main.go b/cmd/git-lfs-authenticate/main.go index a76fdff..3d2c1ea 100644 --- a/cmd/git-lfs-authenticate/main.go +++ b/cmd/git-lfs-authenticate/main.go | |||
@@ -180,7 +180,7 @@ func main() { | |||
180 | die("forbidden") | 180 | die("forbidden") |
181 | } | 181 | } |
182 | 182 | ||
183 | expiresIn := time.Hour * 24 | 183 | expiresIn := time.Minute * 5 |
184 | claims := customClaims{ | 184 | claims := customClaims{ |
185 | Gitolfs3: gitolfs3Claims{ | 185 | Gitolfs3: gitolfs3Claims{ |
186 | Type: "batch-api", | 186 | Type: "batch-api", |