Increase token expiration date
parent
81bad5e032
commit
3bfa856ed5
|
@ -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)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue