(req: Request)
| 346 | } |
| 347 | |
| 348 | function extractBearer(req: Request): string | null { |
| 349 | const auth = req.headers.authorization; |
| 350 | if (!auth || typeof auth !== "string") return null; |
| 351 | const m = /^Bearer\s+(.+)$/i.exec(auth); |
| 352 | return m ? m[1]!.trim() : null; |
| 353 | } |
| 354 | |
| 355 | function jsonRpcError( |
| 356 | body: unknown, |
no outgoing calls
no test coverage detected