| @@ -106,7 +106,7 @@ namespace Diligent.WebAPI.Business.Services | |||
| new Claim(JwtRegisteredClaimNames.Jti, user.Id.ToString()), | |||
| new Claim("id", user.Id.ToString()) | |||
| }), | |||
| Expires = DateTime.UtcNow.AddSeconds(_authSettings.JwtExpiredTime), | |||
| Expires = DateTime.UtcNow.AddMinutes(_authSettings.JwtExpiredTime), | |||
| SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(key), SecurityAlgorithms.HmacSha256Signature) | |||
| }; | |||
| var token = tokenHandler.CreateToken(tokenDescriptor); | |||
| @@ -3,8 +3,8 @@ | |||
| "WebApi": "Server=.;Database=HRCenter;Trusted_Connection=True;MultipleActiveResultSets=true" | |||
| }, | |||
| "Authorization": { | |||
| "JwtExpiredTime": "1", | |||
| "JwtRefreshExpiredTime": "5", | |||
| "JwtExpiredTime": "5", | |||
| "JwtRefreshExpiredTime": "30", | |||
| "Secret": "SECRET_ASKGFH#$_#((Y)#I%EWJGDSJTGKEOS@$SAF" | |||
| } | |||
| } | |||