Extend token expiry to 2 hours to reduce generation frequency
MODIFY
src/WebJobs.Script.WebHost/Controllers/InstanceController.cs
src/WebJobs.Script.WebHost/Controllers/InstanceController.cs
@@ -93,7 +93,7 @@ public IActionResult GetSiteToken()
return NotFound("WEBSITE_AUTH_ENCRYPTION_KEY is not set.");
}
- string requestHeaderToken = SimpleWebTokenHelper.CreateToken(DateTime.UtcNow.AddMinutes(30), websiteEncryptionKey.ToKeyBytes());
+ string requestHeaderToken = SimpleWebTokenHelper.CreateToken(DateTime.UtcNow.AddHours(2), websiteEncryptionKey.ToKeyBytes());
return Ok(requestHeaderToken);
}
}

Extend token expiry to 2 hours to reduce generation frequency