Converting Node's IncomingMessage to a Request Object for better-auth Integration

Trying to wire up better-auth I noticed that there is BunHttpServerRequest.toRequest for Bun, but not for Node. The Node module has NodeHttpServerRequest.toIncomingMessage but the better-auth handler expects a Request object and not an IncomingMessage. What's the most convenient way to get the actual Request object based off of const request = yield* HttpServerRequest.HttpServerRequest?
Was this page helpful?