Incorrect type inference with additionalFields inside a monorepo
I am using BetterAuth inside the
According to the BetterAuth documentation, the
This does not include the additional fields I defined in
packages directory of my Turborepo. According to the BetterAuth documentation, the
Session type should be inferred correctly using typeof auth.$Infer.Session. However, when I hover over User, I get the following inferred type: This does not include the additional fields I defined in
user.additionalFields. Am I missing a step to ensure the custom fields are included in the inferred type?