From 0ae6b66b1dd1c83cf6fc8e268c9e4b02c8984b57 Mon Sep 17 00:00:00 2001 From: "D. Ror." Date: Tue, 20 Aug 2024 12:59:46 -0400 Subject: [PATCH] Increase login expire from 4 to 12 hours (#3314) --- Backend/Services/PermissionService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Backend/Services/PermissionService.cs b/Backend/Services/PermissionService.cs index 40bc5db85a..e1dabaa1d8 100644 --- a/Backend/Services/PermissionService.cs +++ b/Backend/Services/PermissionService.cs @@ -170,7 +170,7 @@ public string GetUserId(HttpContext request) /// Creates a JWT token for the given user. public async Task MakeJwt(User user) { - const int hoursUntilExpires = 4; + const int hoursUntilExpires = 12; var tokenHandler = new JwtSecurityTokenHandler(); var secretKey = Environment.GetEnvironmentVariable("COMBINE_JWT_SECRET_KEY")!; var key = Encoding.ASCII.GetBytes(secretKey);