Org plugin is ignoring additional fields on teams
I added a slug property to my team schema, but its not being passed when i actually try and use it
I can manually add it to the schema but its being ignored still, like the additional fields don't even exist
export const auth = betterAuth({
...
database: prismaAdapter(db, {
provider: "postgresql"
}),
plugins: [
...
organization({
teams: {
enabled: true,
defaultTeam: {
enabled: false
},
additionalFields: {
slug: {
type: "string",
required: true
}
}
}
}),
nextCookies()
],
...
})export const auth = betterAuth({
...
database: prismaAdapter(db, {
provider: "postgresql"
}),
plugins: [
...
organization({
teams: {
enabled: true,
defaultTeam: {
enabled: false
},
additionalFields: {
slug: {
type: "string",
required: true
}
}
}
}),
nextCookies()
],
...
})const team = await auth.api.createTeam({
body: {
name: input.name,
slug: input.slug,
organizationId: input.organizationId
},
headers: ctx.headers
})const team = await auth.api.createTeam({
body: {
name: input.name,
slug: input.slug,
organizationId: input.organizationId
},
headers: ctx.headers
})I can manually add it to the schema but its being ignored still, like the additional fields don't even exist
