From 3cdfc7af2bacd8ce231a8074ff76e67c27adb074 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 2 Oct 2022 00:11:57 +0000 Subject: [PATCH] Make the auth tokens last longer. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3992 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- core/auth.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/auth.js b/core/auth.js index 39c2caf4..c890c02e 100644 --- a/core/auth.js +++ b/core/auth.js @@ -5,7 +5,13 @@ import * as form from './form.js'; var gTokens = {}; var gDatabase = new Database("auth"); -const kRefreshInterval = 1 * 60 * 60 * 1000; +const kRefreshInterval = + 1 /* w */ * + 7 /* d */ * + 24 /* h */ * + 60 /* m */ * + 60 /* s */ * + 1000 /* ms */; function b64url(value) { value = value.replaceAll('+', '-').replaceAll('/', '_');