Function validateWithStrategy
- validateWithStrategy(value, _formValues, passwordValidateStrategy, errorMessage): Promise<undefined | string>
Parameters
value: unknown
_formValues: unknown
passwordValidateStrategy: PasswordValidateStrategy
errorMessage: ((errors) => string)
- (errors): string
Parameters
errors: PasswordValidationError[]
Returns string
Returns Promise<undefined | string>
Hook that can be mapped to react-hook-form for password validation