PasswordHashValidator typedef

PasswordHashValidator = Future<bool> Function(String password, String email, String hash, {void onError(Object e)?, void onValidationFailure({required String passwordHash, required String storedHash})?})

Callback to validate the hash used by PasswordHashGenerator

Implementation

typedef PasswordHashValidator = Future<bool> Function(
  String password,
  String email,
  String hash, {
  void Function({required String passwordHash, required String storedHash})?
      onValidationFailure,
  void Function(Object e)? onError,
});