We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dd4201 commit ba9ee88Copy full SHA for ba9ee88
server/plugins/http-proxy.js
@@ -28,7 +28,7 @@ function proxyPlugin(fastify) {
28
// Check if the access token is expired or about to expire
29
const expiresAt = request.encryptedSession.get(keyTokenExpiresAt);
30
const now = Date.now();
31
- const REFRESH_BUFFER_SECONDS = 20; // to allow for network latency
+ const REFRESH_BUFFER_SECONDS = 20 * 1000; // to allow for network latency
32
if (!expiresAt || now < expiresAt - REFRESH_BUFFER_SECONDS) {
33
request.log.info("Access token is still valid; no refresh needed.");
34
return;
0 commit comments