Make the auth tokens last longer.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3992 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2022-10-02 00:11:57 +00:00
parent 113a82b382
commit 3cdfc7af2b

View File

@ -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('/', '_');