confirmPassword method
Confirms if the given basePassword is the correct password for the
given model.
Implementation
Future<bool> confirmPassword(
UserModel model,
String basePassword,
) async {
final authentication = await findUserAuthentication(model);
if (authentication == null) {
return false;
}
return authenticationGenerator.confirmAuthentication(
authentication,
basePassword,
);
}