Customizing schema is not working in client side.
Docs i have refered : https://www.better-auth.com/docs/plugins/organization#customizing-the-schema
I have auth.ts and auth-client.ts ,
Organisation plugin from my auth.ts looks like this (as file )
and in auth-client.ts
from client side then it is giving me type error , now if i move my $inferAuth to then it is giving me lint error in client file and , and let say if I do $inferAuth: {} as typeof auth, then also it is giving me type error in client file and createTeam api call .
Now also let say anyhow I remove all the linters then createTeam is ofc not taking the identifier as arg in api so prisma will give me new error of missing field
Organization | Better Auth
The organization plugin allows you to manage your organization's members and teams.



0 Replies