(pair: string)
| 33 | }; |
| 34 | |
| 35 | const cookieValue = (pair: string): string => { |
| 36 | const [, value] = pair.split(/=(.*)/s); |
| 37 | if (!value) throw new Error("cookie pair has no value"); |
| 38 | return value; |
| 39 | }; |
| 40 | |
| 41 | const cookieOf = (identity: { readonly headers?: Record<string, string> }): string => |
| 42 | identity.headers?.cookie ?? ""; |
no outgoing calls
no test coverage detected