deleteUserAuthentication method

Future<bool> deleteUserAuthentication(
  1. UserModel model
)

Deletes the UserAuthentication for the given model if it exists in authenticationDatabase

Implementation

Future<bool> deleteUserAuthentication(UserModel model) async {
  final authentication = await findUserAuthentication(model);
  if (authentication == null) {
    return false;
  }
  return await _specificDatabase.deleteModel(authentication);
}