Skip to content

Function: resolveSessionCutoff()

resolveSessionCutoff(configured?): number

Resolve the force-clear cutoff as epoch MILLISECONDS, or 0 when unset.

Accepts whatever object.toDate accepts - a Date, 2026-08-02, an ISO instant, epoch seconds or millis from date +%s, or a relative duration (-30d, 7 days ago), which is the spelling an operator reaching for this usually wants: sign out everyone who signed in more than a month ago.

An UNPARSEABLE value is ignored with a warning rather than throwing: this is the switch that logs a fleet back in, and failing to boot over a typo is worse than not rotating.

string | number | Date

number