aswnss
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()
const session: {
session: unknown;
user: unknown;
} | null
const session: {
session: unknown;
user: unknown;
} | null
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 ?
No description
7 replies
BABetter Auth
Created by aswnss on 5/17/2025 in #help
Inferring additional fields on hooks
No description
9 replies
BABetter Auth
Created by aswnss on 5/15/2025 in #help
Next Hono session is empty
No description
36 replies