aswnss
BABetter Auth
•Created by aswnss on 5/20/2025 in #help
Infer type is empty in hono
another question in hono , is how should we bind the authtypes ? in the hono website the example given is like this
but then i am getting error calling
c.get("user")
15 replies
BABetter Auth
•Created by aswnss on 5/20/2025 in #help
Infer type is empty in hono
That was the reason.
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
BABetter Auth
•Created by aswnss on 5/17/2025 in #help
How do you make fetch call from Nextjs to Hono with auth ?
This is when you have a seperate Nextjs frontend and standalone hono server. I dont think for those you replace or route all the api request from Nextjs through hono will face this issue
7 replies
BABetter Auth
•Created by aswnss on 5/17/2025 in #help
How do you make fetch call from Nextjs to Hono with auth ?
When you have an entirely seperate Nextjs frontend and Hono backend , to make an authenticated request
Also you should not use the
nextCookies()
plugin from auth.ts config file for some reason7 replies
BABetter Auth
•Created by aswnss on 5/17/2025 in #help
Inferring additional fields on hooks
It is not being passed as well, getting undefined when console logged
9 replies
BABetter Auth
•Created by aswnss on 5/15/2025 in #help
Next Hono session is empty
this did fix it
36 replies
BABetter Auth
•Created by aswnss on 5/15/2025 in #help
Next Hono session is empty
did not solve the issue 😥 .. well let me try logging in from a client component now instead of the "use server" method
36 replies
BABetter Auth
•Created by aswnss on 5/15/2025 in #help
Next Hono session is empty
cors is set like this in hono
36 replies
BABetter Auth
•Created by aswnss on 5/15/2025 in #help
Next Hono session is empty
tried and failed, well i thought of that way too like since i am logging in using server action that happens on the server side and then next cant set the cookies since the auth.ts file is actually on a seperate project ( nextCookies() ) might not be working.
So I tried making the login request from a client component but that gave me the issue like you need to have Access-Control-Cross-Credentials set to true , but could not debug that issue ..
36 replies
BABetter Auth
•Created by aswnss on 5/15/2025 in #help
Next Hono session is empty
funny thing is registration and login is actually working .. just cant get the session 😿
36 replies
BABetter Auth
•Created by aswnss on 5/15/2025 in #help
Next Hono session is empty
nop new user also returns data null and error null
36 replies