Romain
06/22/2022, 9:30 AMnkshah2
06/22/2022, 9:34 AMsupertokens-auth-react
on the frontend you could add your custom validator on the frontend itselfRomain
06/22/2022, 9:37 AMRomain
06/22/2022, 9:38 AMnkshah2
06/22/2022, 9:39 AMundefined
in the validator (the one you linked to) for password. This will disable the SDKs validation for it
You can then use our override feature to override the sign in/sign up functions and perform your validation therenkshah2
06/22/2022, 9:40 AMRomain
06/22/2022, 9:44 AMnkshah2
06/22/2022, 9:46 AMRomain
06/22/2022, 9:46 AMnkshah2
06/22/2022, 9:48 AMnkshah2
06/22/2022, 9:48 AMRomain
06/22/2022, 9:55 AMRomain
06/22/2022, 4:06 PMsignUp
function override, it's a good practice ?
throw new EmailPassword.Error({
type: 'FIELD_ERROR',
payload: [
{
id: 'password',
error: 'Password must contain at least 12 character',
},
],
message: 'Error in input formFields',
})
Romain
06/22/2022, 4:06 PMnkshah2
06/22/2022, 4:07 PMnkshah2
06/22/2022, 4:07 PMRomain
06/22/2022, 4:08 PMnkshah2
06/22/2022, 4:10 PMRomain
06/22/2022, 4:22 PM