Client not inferring customerSession type

I am unable to get the client to get the type of the customSession object.

Here is my backend code

and my client code

The permissions, teams, roles and user.accessLevel are not referred to on the client. I am using betterAuth 1.3.1
code1.png
Screenshot_2025-07-21_at_11.36.04_AM.png
Was this page helpful?