From ff27493670421b10aa9ecad7a40c5738daad8bb4 Mon Sep 17 00:00:00 2001 From: Egor Pozharov Date: Thu, 16 Apr 2026 13:00:48 +0600 Subject: [PATCH] fix JWT token expiry from 24 minutes to 24 hours --- backend/cmd/api/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/cmd/api/main.go b/backend/cmd/api/main.go index be9e2a6..dbd2824 100644 --- a/backend/cmd/api/main.go +++ b/backend/cmd/api/main.go @@ -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")