[Not sure if bug] Admin plugin does not use the Infering Types

As title says

Using the create user
const newUser = await authClient.admin.createUser({
  name: "Test User",
  email: "test@example.com",
  password: "password123",
  role: "user"
});

Does not adhere to any custom fields made in auth.ts

I've added
  additionalFields: {
            firstName: {
                type: "string",
                required: true,
            },
            lastName: {
                type: "string",
                required: true,
            },``

The only fields it seems to take into consideration is the pre-defined fields that are found in the docs
name: "Test User",
  email: "test@example.com",
  password: "password123",
  role: "user"



eg:
id: "0_XCvVtlUk4bLELI_mCQ-",
  name: "undefined undefined",
  email: "din@far.com",
  emailVerified: false,
  image: undefined,
  createdAt: new Date("2024-11-01T20:41:18.890Z"),
  updatedAt: new Date("2024-11-01T20:41:18.890Z"),
  role: "user",
  banned: undefined,
  banReason: undefined,
  banExpires: undefined,
  lastName: undefined,
  street: undefined,
  zip: undefined,
  city: undefined,
  country: undefined,
  phoneNumber: undefined,
  lang: undefined,


All fields are undefined, but they are parsed to the function correctly.
Was this page helpful?