From bae46f37326d1da512c7694b65d659df43f3ef27 Mon Sep 17 00:00:00 2001 From: Alan Parra Date: Wed, 4 Dec 2024 10:36:03 -0300 Subject: [PATCH] Update comments --- web/packages/teleport/src/services/websession/websession.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/packages/teleport/src/services/websession/websession.ts b/web/packages/teleport/src/services/websession/websession.ts index c75e4307a444e..e59a893295505 100644 --- a/web/packages/teleport/src/services/websession/websession.ts +++ b/web/packages/teleport/src/services/websession/websession.ts @@ -141,8 +141,8 @@ const session = { return false; } - // Renew session if token expiry time is less than renewTime (with a floor - // of 30s and a ceiling of 3m). + // Renew session if token expiry time is less than renewTime (with MIN_ and + // MAX_RENEW_TOKEN_TIME as floor and ceiling, respectively). // Browsers have js timer throttling behavior in inactive tabs that can go // up to 100s between timer calls from testing. 3 minutes seems to be a safe number // with extra padding.