add service
All checks were successful
Deploy Smart Search Backend Test / deploy (push) Successful in 1m53s

This commit is contained in:
vallyenfail
2026-01-20 15:02:00 +03:00
parent 28c8f93815
commit b4309cb458
2 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ func GenerateAccessToken(userID int, secret string) (string, error) {
Subject: strconv.Itoa(userID),
ID: uuid.New().String(),
IssuedAt: jwt.NewNumericDate(now),
ExpiresAt: jwt.NewNumericDate(now.Add(15 * time.Minute)),
ExpiresAt: jwt.NewNumericDate(now.Add(2 * time.Minute)),
},
}
@@ -39,7 +39,7 @@ func GenerateRefreshToken(userID int, secret string) (string, error) {
Subject: strconv.Itoa(userID),
ID: uuid.New().String(),
IssuedAt: jwt.NewNumericDate(now),
ExpiresAt: jwt.NewNumericDate(now.Add(30 * 24 * time.Hour)),
ExpiresAt: jwt.NewNumericDate(now.Add(24 * time.Hour)),
},
}