Organizations: inferAdditionalFields for separate client-server projects

In point two of Inferring Addional Fields on Client in the inferring additional fields docs
there is the following example:

import type { auth } from "./auth";
import { inferAdditionalFields } from "better-auth/client/plugins";
 
export const authClient = createAuthClient({
  plugins: [inferAdditionalFields({
      user: {
        role: {
          type: "string"
        }
      }
  })],
});


is there an equivalent for this for the newly added custom fields in organizations?
Was this page helpful?