funk101
12/22/2022, 7:46 PMnkshah2
12/23/2022, 3:49 AMfunk101
12/23/2022, 3:50 AMporcellus
12/23/2022, 8:54 AMporcellus
12/23/2022, 8:55 AMfunk101
12/23/2022, 9:35 AMporcellus
12/23/2022, 10:58 AMEmailPasswordSignUpForm
with your own form.
If you didn't entirely replace the form, just added your own field, you need to add an preAPIHook
(https://supertokens.com/docs/emailpassword/advanced-customizations/frontend-hooks/pre-api) and change the body to include your new field in the formFields
prop of the body with the id
and value
of your field.
Lastly, Step 2&3 apply from here: https://supertokens.com/docs/emailpassword/common-customizations/signup-form/adding-fieldsfunk101
12/23/2022, 11:23 AMfunk101
12/30/2022, 3:43 PMEmailPasswordReact.init({
signInAndUpFeature: {
disableDefaultUI: true,
},
getRedirectionURL: async (context) => {
console.log("Context: ", context);
if (context.action === "TO_AUTH") {
return "/sign-up-form";
}
funk101
12/30/2022, 3:44 PMcontext.action === "TO_AUTH"
but they're talking about the "SignIn" form. What's the context.action for signup? And is there a list of context.actions somewhere? I have not been able to find them in the docs