Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
263 B · 9 lines
TypeScript
at main
12345678910import * as env from '#/env'
const ONE_MIN = 60 * 1e3const TTL = (env.IS_NATIVE ? 5 : 30) * ONE_MIN // 5 min on native
export function isSessionIdExpired(since: number | undefined) { if (since === undefined) return false return Date.now() - since >= TTL}