clearTokens static method

Future<void> clearTokens()

Implementation

static Future<void> clearTokens() async {
  _memToken = null;
  final p = await SharedPreferences.getInstance();
  await p.remove(_kToken);
  await p.remove(_kRefresh);
  AutoPilotLogger.logToken('Tokens cleared');
}