INNER CODE UNIT · TypeScript

DESKTOP_AUTH_PROOF_TTL_MS

elie222/inbox-zero · apps/desktop/src/main.ts:81

const DESKTOP_AUTH_PROOF_TTL_MS = 5 * 60 * 1000;
const PENDING_CALLBACK_PATH_FILE = "pending-auth-callback-path";
const LAST_APP_URL_FILE = "last-app-url";
const WINDOWS_STATE_FILE = "windows.json";

const windows: BrowserWindow[] = [];
const lastUrlByWindow = new WeakMap<BrowserWindow, string>();
const unreadByContents = new Map<number, number>();
const loadRecoveryByContents = new Map<
  number,
  ReturnType<typeof installDesktopLoadRecovery>
>();
let lastResumedAt: number | null = null;
let lastFocused: BrowserWindow | null = null;
let persistWindowsTimer: ReturnType<typeof setTimeout> | undefined;
let pendingAuthProof: { verifier: string; expiresAt: number } | null = null;
let pendingAuthUrl: string | null = null;
let pendingCallbackPath: string | null = null;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…