`getSession()` coming back as null in Hono/ORPC middleware
Has anyone used ORPC with Better-Auth? I am trying to do so but sessions are coming back empty. Under the hood it uses Hono:
In the middleware, I am trying to call
I see the header value is valid:
In the middleware, I am trying to call
getSession:I see the header value is valid:
Authorization: Bearer {token} but it gets returned as null. Since I am simply saving Hono's req.raw.headers object I feel like it should work; is there some other data that's required to verify a bearer token?
oRPC makes it easy to build APIs that are end-to-end type-safe and adhere to OpenAPI standards, ensuring a smooth and enjoyable developer experience.
