destroy method

Future<bool> destroy()

Implementation

Future<bool> destroy() async {
  SharedPreferences prefs = await _prefs;
  try {
    return await prefs.clear();
  } catch (e) {
    throw Exception(
        "It wasn't possible to destroy the auth. This can be triggered if the auth no longer exists or if the auth is inaccessible. ");
  }
}