romain9206
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 itselfromain9206
06/22/2022, 9:37 AMromain9206
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 AMromain9206
06/22/2022, 9:44 AMnkshah2
06/22/2022, 9:46 AMromain9206
06/22/2022, 9:46 AMnkshah2
06/22/2022, 9:48 AMnkshah2
06/22/2022, 9:48 AMromain9206
06/22/2022, 9:55 AMromain9206
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',
})
romain9206
06/22/2022, 4:06 PMnkshah2
06/22/2022, 4:07 PMnkshah2
06/22/2022, 4:07 PMromain9206
06/22/2022, 4:08 PMnkshah2
06/22/2022, 4:10 PMromain9206
06/22/2022, 4:22 PM