cant find table column that i added to the user table in session
so basiclly i modified the user table and added a phone field but when i try to display it using the session hook useSession i get an erreur that the property does not exist on type user
i added the additionalFields in the auth.ts file and i can successfully signUp and the phone gets added to the user table
6 Replies
Could it be that your session is cached?
no the phone gets displayed but the error is still there
its a type error basiclly
Oh I see!
Solution
Have you added the additionalFields plugin on your client auth?
TypeScript | Better Auth
Better Auth TypeScript integration.
yess
ohh thank u i added the aditianal fileds but not and it works now