(value: string | undefined)
| 464 | } |
| 465 | |
| 466 | function 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 | |
| 472 | function stringFormValue(value: unknown): string { |
| 473 | return typeof value === "string" ? value.trim() : ""; |
no test coverage detected