mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
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:
parent
368d644741
commit
af2cceb6a8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue