porcx
12/06/2022, 4:16 AMrp_st
12/06/2022, 4:23 AMrp_st
12/06/2022, 4:23 AMporcx
12/06/2022, 4:24 AMporcx
12/06/2022, 4:24 AMrp_st
12/06/2022, 4:25 AMporcx
12/06/2022, 4:27 AMrp_st
12/06/2022, 4:28 AMporcx
12/06/2022, 4:28 AMrp_st
12/06/2022, 4:28 AMporcx
12/06/2022, 4:29 AMporcx
12/06/2022, 4:29 AMrp_st
12/06/2022, 4:32 AMrp_st
12/06/2022, 4:33 AMrp_st
12/06/2022, 4:33 AMporcx
12/06/2022, 6:52 AMEmailPassword.init({
signInAndUpFeature: {
signUpForm: {
formFields: [{
id: "name",
label: "Full name",
placeholder: "First name and last name"
}, {
id: "age",
label: "Your age",
placeholder: "How old are you?",
optional: true,
/* Validation method to make sure that age is above 18 */
validate: async (value) => {
if (parseInt(value) > 18) {
return undefined; // means that there is no error
}
return "You must be over 18 to register";
}
}, {
id: "country",
label: "Your country",
placeholder: "Where do you live?",
optional: true
}]
}
}
}),
porcx
12/06/2022, 6:53 AMinput.formFields = formFields;
const response = await originalImplementation.signInPOST(input);
Can i implement similar to signinpost as well ?rp_st
12/06/2022, 6:56 AMid: email
to allow usersnamerp_st
12/06/2022, 6:56 AMrp_st
12/06/2022, 6:56 AMrp_st
12/06/2022, 6:57 AMrp_st
12/06/2022, 6:57 AMporcx
12/06/2022, 7:16 AMrp_st
12/06/2022, 7:17 AMrp_st
12/06/2022, 11:34 AMrp_st
12/06/2022, 11:35 AM