Skip to content

Commit 3502311

Browse files
author
Hanzhang Zeng (Roger)
committed
Extend token expiry to 2 hours to reduce generation frequency
1 parent e67c778 commit 3502311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebJobs.Script.WebHost/Controllers/InstanceController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public IActionResult GetSiteToken()
9393
return NotFound("WEBSITE_AUTH_ENCRYPTION_KEY is not set.");
9494
}
9595

96-
string requestHeaderToken = SimpleWebTokenHelper.CreateToken(DateTime.UtcNow.AddMinutes(30), websiteEncryptionKey.ToKeyBytes());
96+
string requestHeaderToken = SimpleWebTokenHelper.CreateToken(DateTime.UtcNow.AddHours(2), websiteEncryptionKey.ToKeyBytes());
9797
return Ok(requestHeaderToken);
9898
}
9999
}

0 commit comments

Comments
 (0)