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:
parent
113a82b382
commit
3cdfc7af2b
@ -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('/', '_');
|
||||
|
Loading…
Reference in New Issue
Block a user