Skip to content

Commit 19feede

Browse files
Fix inactivity timeout code (#1803)
1 parent 98f9bd8 commit 19feede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/sessions/inactivity-timeout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async function validateSessionToken(dbPool: DBPool, token: string): Promise<Sess
5454
return null;
5555
}
5656

57-
if (now.getTime() - session.lastVerifiedAt.getTime() >= activityCheckIntervalSeconds) {
57+
if (now.getTime() - session.lastVerifiedAt.getTime() >= activityCheckIntervalSeconds * 1000) {
5858
session.lastVerifiedAt = now;
5959
await executeQuery(dbPool, "UPDATE session SET last_verified_at = ? WHERE id = ?", [
6060
Math.floor(session.lastVerifiedAt.getTime() / 1000),

0 commit comments

Comments
 (0)