fix JWT token expiry from 24 minutes to 24 hours

This commit is contained in:
Egor Pozharov
2026-04-16 13:00:48 +06:00
parent 70129baad5
commit ff27493670

View File

@@ -18,7 +18,7 @@ import (
func initAuth(queries *db.Queries) (*auth.Service, *auth.Handler) {
secret := []byte(os.Getenv("JWT_SECRET"))
expiry := 24 * time.Minute
expiry := 24 * time.Hour
if len(secret) == 0 {
log.Fatal("JWT_SECRET not set")