how to validate two passwords are the same in yup code example
Example: how to do password confirm in Yup
passwordConfirm: Yup.string()
+ .label('Password Confirm')
+ .required()
+ .oneOf([Yup.ref('password')], 'Passwords does not match'),