Restore API token if expired
This commit is contained in:
@@ -47,7 +47,7 @@ namespace WebAPI.Controllers
|
||||
private dynamic JWTGenerator(User user)
|
||||
{
|
||||
var key = Encoding.ASCII.GetBytes(configuration.GetValue<string>("Secret"));
|
||||
var expirationTime = DateTime.UtcNow.AddMinutes(30);
|
||||
var expirationTime = DateTime.UtcNow.AddMinutes(5);
|
||||
var tokenDescriptor = new SecurityTokenDescriptor
|
||||
{
|
||||
Subject = new ClaimsIdentity(new[]
|
||||
|
||||
Reference in New Issue
Block a user