set agent setup token expired in one hour

This commit is contained in:
liugq 2023-08-04 18:19:54 +08:00
parent 5274657f03
commit 24072cd0a1
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ type Token struct {
UserID string
}
const ExpiredIn = time.Millisecond * 1000 * 60 * 20
const ExpiredIn = time.Millisecond * 1000 * 60 * 60
func (h *APIHandler) generateInstallCommand(w http.ResponseWriter, req *http.Request, ps httprouter.Params) {
claims, ok := req.Context().Value("user").(*rbac.UserClaims)
if !ok {