inferAdditionalFields
What is the purpose of inferAdditionalFields (this is mostly rhetorical) because the returned user object from signin email doesn't have additional fields even if specified and if you don't put inferAdditionalFields in your client config the fields are added by default to the user returned in the session.
I am confused on the purpose because it doesn't seem to do anything. I am likely doing something wrong somewhere.

Solution:Jump to solution
I'm good. The documentation helps:
https://www.better-auth.com/docs/concepts/typescript#inferring-additional-fields-on-client...
TypeScript | Better Auth
Better Auth TypeScript integration.
4 Replies
If your client and server are in separate projects, you'll need to manually specify the additional fields when creating the auth client.
Yeah they are in different projects and I have inferred the additional fields but doing that doesn't seem to matter. If I remove it, everything still works as expected. Is this just for TypeScript types or some larger thing?
you will do manually for the client auth instance not the server.
Solution
I'm good. The documentation helps:
https://www.better-auth.com/docs/concepts/typescript#inferring-additional-fields-on-client
TypeScript | Better Auth
Better Auth TypeScript integration.