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