I'm getting an error saying ""Are you sending too many / too few formFields?" I'm following the example from the docs, this is my frontend and backend code, am I missing something? ( I checked, the values are populated with data when sending the request to ST)
frontend code
const response = await EmailPassword.signUp({
formFields: [
{
id: "invite",
value: invite.value.id
},
{
id: "password",
value: password,
},
{
id: 'first_name',
value: firstname
},
{
id: 'last_name',
value: lastname
},
]
});
And the backend
EmailPassword.init({
signUpFeature: {
formFields: [
{id: "invite"},
{id: "password"},
{id: "first_name"},
{id: "last_name"},
]
},
override: {
apis: (originalImplementation) => {
return {
...originalImplementation,
signUpPOST: async function (input) {
if (originalImplementation.signUpPOST === undefined) {
throw Error("Should never come here");
}
let response = await originalImplementation.signUpPOST(input);
console.log(input)
return response
}
}
}
}
}),