custom fields for credential signup

Is it possible to change the fields for registration? maybe something like this?
export const auth = betterAuth({
database: prismaAdapter(prisma, {
provider: "postgresql",
}),
emailAndPassword: {
enabled: true,
},
user: {
fields: {
email: "email",
firstName: "firstName",
lastName: "lastName",
password: "password",
},
},
});
export const auth = betterAuth({
database: prismaAdapter(prisma, {
provider: "postgresql",
}),
emailAndPassword: {
enabled: true,
},
user: {
fields: {
email: "email",
firstName: "firstName",
lastName: "lastName",
password: "password",
},
},
});
No description
5 Replies
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
Patrick
PatrickOP4mo ago
Thanks :), but can I also completely remove the fields such as name and image and define my own. Here I can only add more fields
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
Patrick
PatrickOP4mo ago
All Right thank you 😁
Kazz
Kazz4mo ago
You can try and request this feature in #feature-requests

Did you find this page helpful?