From af2cceb6a81f9740d154782b7249c60975de514e Mon Sep 17 00:00:00 2001 From: Jamie Rees Date: Tue, 5 Jun 2018 15:13:31 +0100 Subject: [PATCH] The UI looks at the local time to see if the JWT token has expired. Use local time to generate the token --- src/Ombi/Controllers/TokenController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ombi/Controllers/TokenController.cs b/src/Ombi/Controllers/TokenController.cs index a488ba172..b45752af4 100644 --- a/src/Ombi/Controllers/TokenController.cs +++ b/src/Ombi/Controllers/TokenController.cs @@ -126,7 +126,7 @@ namespace Ombi.Controllers var token = new JwtSecurityToken( claims: claims, - expires: rememberMe ? DateTime.UtcNow.AddDays(7) : DateTime.UtcNow.AddHours(5), + expires: rememberMe ? DateTime.Now.AddDays(7) : DateTime.Now.AddDays(1), signingCredentials: creds, audience: "Ombi", issuer: "Ombi" );