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
  <div className="flex flex-col space-y-0.5">
   <p className="text-sm font-medium">
      {session.user?.name || "User"}
    </p>
   <p className="text-xs text-muted-foreground truncate">
     {session.user?.email || ""}
     </p>
   <p className="text-xs text-muted-foreground truncate">
      {session.user?.phone || ""}
     </p>
   </div>
Solution
Have you added the additionalFields plugin on your client auth?
Was this page helpful?