Increase token expiration date

dashboard
Pat Hartl 2023-01-15 13:21:41 -06:00
parent 81bad5e032
commit 3bfa856ed5
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ namespace LANCommander.Controllers.Api
var authSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(Configuration["JWT:Secret"]));
var token = new JwtSecurityToken(
expires: DateTime.Now.AddHours(3),
expires: DateTime.Now.AddDays(30),
claims: authClaims,
signingCredentials: new SigningCredentials(authSigningKey, SecurityAlgorithms.HmacSha256)
);