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

pull/2308/head
Jamie Rees 7 years ago
parent 368d644741
commit af2cceb6a8

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

Loading…
Cancel
Save