(name: string)
| 988 | } |
| 989 | |
| 990 | function normalizeRequiredSessionName(name: string): string { |
| 991 | const normalized = normalizeUserSessionName(name); |
| 992 | if (!normalized.ok) throw new Error(normalized.error); |
| 993 | return normalized.value; |
| 994 | } |
| 995 | |
| 996 | /** Validate and normalize a current SessionHeader before canonical persistence. */ |
| 997 | export function normalizeSessionHeader( |
no test coverage detected