docs: update readme

chore: session timoeouts up
feature: started to look at doing something around durations for some
forgotten reason, but don't want to just abandon this now 🤷
This commit is contained in:
Andy Burke 2025-07-08 18:10:09 -07:00
parent 0a85a7e05f
commit 51acbef35f
3 changed files with 113 additions and 6 deletions

View file

@ -10,7 +10,7 @@ import { get_session, get_user, PRECHECK_TABLE, require_user, SESSION_ID_TOKEN,
import * as bcrypt from 'jsr:@da/bcrypt';
import { verifyTotp } from '../../../utils/totp.ts';
const DEFAULT_SESSION_TIME: number = 60 * 60 * 1_000; // 1 Hour
const DEFAULT_SESSION_TIME: number = 28 * (24 * (60 * (60 * 1_000))); // 28 days
export const PRECHECKS: PRECHECK_TABLE = {};