Skip to content

Commit 69f4668

Browse files
committed
Rename variable
1 parent 1196a70 commit 69f4668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/plugins/http-proxy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ function proxyPlugin(fastify) {
2828
// Check if the access token is expired or about to expire
2929
const expiresAt = request.encryptedSession.get(keyTokenExpiresAt);
3030
const now = Date.now();
31-
const REFRESH_BUFFER_SECONDS = 20 * 1000; // to allow for network latency
32-
if (!expiresAt || now < expiresAt - REFRESH_BUFFER_SECONDS) {
31+
const REFRESH_BUFFER_MILLISECONDS = 20 * 1000; // to allow for network latency
32+
if (!expiresAt || now < expiresAt - REFRESH_BUFFER_MILLISECONDS) {
3333
request.log.info("Access token is still valid; no refresh needed.");
3434
return;
3535
}

0 commit comments

Comments
 (0)