This commit is contained in:
2022-12-11 21:30:54 +01:00
parent fbefa6d847
commit d69d571393
7 changed files with 18 additions and 22 deletions

View File

@@ -57,7 +57,7 @@ namespace WebAPI.Controllers
new Claim(JwtRegisteredClaimNames.Jti,
Guid.NewGuid().ToString())
}),
Expires = DateTime.UtcNow.AddMinutes(5),
Expires = DateTime.UtcNow.AddMinutes(30), // TODO: to long - to fix in the future
SigningCredentials = new SigningCredentials
(new SymmetricSecurityKey(key),
SecurityAlgorithms.HmacSha512Signature)