`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
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?
0 Replies