Hatila
BABetter Auth
•Created by Hatila on 5/9/2025 in #help
Type error in "signUp" after renaming "name" in "user" table
Hello,
I'm trying to rename a column in the user table.
Here is my auth config:
user: {
fields: {
name: "firstName",
},
The client code:
I'm using in the auth-client:
inferAdditionalFields<Auth>(),
const { error } = await authClient.signUp.email({
firstName, -> TS Error
lastName,
email,
password,
language: language || "en",
});
Here is the error:
Object literal may only specify known properties, and 'firstName' does not exist in type 'Prettify<InferSignUpEmailCtx<{ baseURL: string; plugins: ({ id: "two-factor"; $InferServerPlugin: { id: "two-factor"; endpoints: { enableTwoFactor: { <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: { body: { password: string; issuer?: string | undefined; }; } & ... 6 more ... ...'.Any help is welcomed
8 replies