aswnss
BABetter Auth
•Created by aswnss on 5/20/2025 in #help
Infer type is empty in hono
In the auth.ts file , while following the hono better-auth docs. It states to infer the user and session type use
auth.$infer
.
But in my case that is an empty object. I am binding that to Hono app by const app = new Hono<{Binding: AuthType}>
which according to docs should set the type for users and session.
this is the type that i get back when using auth.api.getSession()
why is it unknown ?15 replies
BABetter Auth
•Created by aswnss on 5/17/2025 in #help
How do you make fetch call from Nextjs to Hono with auth ?

7 replies