How to extend Sing-in & Sign-up body with custom fields?

Is there a way to pass a custom field though client.signup.email / social ?
await signUp.email({
email: values.email,
password: values.password,
name: `${values.firstName} ${values.lastName}`,
image: image ? await convertImageToBase64(image) : "",
callbackURL: "/new",
customField: custom_value <-------- // CAN I PASS A CUSTOM VALUE HERE?
fetchOptions: {}
})
await signUp.email({
email: values.email,
password: values.password,
name: `${values.firstName} ${values.lastName}`,
image: image ? await convertImageToBase64(image) : "",
callbackURL: "/new",
customField: custom_value <-------- // CAN I PASS A CUSTOM VALUE HERE?
fetchOptions: {}
})
Solution:
Yes you add additional fields to user in the auth config
Jump to solution
2 Replies
Solution
KHRM
KHRM4d ago
Yes you add additional fields to user in the auth config
KHRM
KHRM4d ago
And set input to true to have it required

Did you find this page helpful?