Increase token expiration date

This commit is contained in:
Pat Hartl 2023-01-15 13:21:41 -06:00
parent 81bad5e032
commit 3bfa856ed5

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