The UI looks at the local time to see if the JWT token has expired. Use local time to generate the token

This commit is contained in:
Jamie Rees 2018-06-05 15:13:31 +01:00
parent 368d644741
commit af2cceb6a8

View file

@ -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"
);