MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / sessionExpired

Function sessionExpired

packages/ci-proxy-worker/src/index.ts:466–470  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

464}
465
466function sessionExpired(value: string | undefined): boolean {
467 if (!value) return false;
468 const timestamp = Date.parse(value);
469 return Number.isFinite(timestamp) && timestamp <= Date.now();
470}
471
472function stringFormValue(value: unknown): string {
473 return typeof value === "string" ? value.trim() : "";

Callers 2

handleRequestFunction · 0.85
establishSessionFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected