clearAuth method

Future<void> clearAuth()

Clear stored auth

Implementation

Future<void> clearAuth() async {
  try {
    final prefs = await SharedPreferences.getInstance();
    await prefs.remove(_kTokenKey);
    await prefs.remove(_kReqIdKey);
    await prefs.remove(_kTokenSavedAtKey);
  } catch (e) {
    debugPrint?.call('AuthService.clearAuth: $e');
  }
}