VitaBjorn
BABetter Auth
•Created by Rufis on 3/4/2025 in #help
Incorrect type inference with additionalFields inside a monorepo
Ok, so this is what I was missing. Adding the
inferAdditionalFields
plugin to the client!
https://www.better-auth.com/docs/concepts/typescript#inferring-additional-fields-on-client4 replies
BABetter Auth
•Created by Rufis on 3/4/2025 in #help
Incorrect type inference with additionalFields inside a monorepo
+1 I added a
role
additional field to the user it's not reflecting on types. Would be great to know how to fix it or if we're missing something.4 replies