logout static method
Implementation
static Future<bool> logout() async {
try {
await storage.delete(key: 'token');
await storage.delete(key: 'email');
await storage.delete(key: 'account_id');
debugPrint('[DEBUG]: Contains E-Mail: ${await storage.containsKey(key: 'email')}');
debugPrint('[DEBUG]: Contains Token: ${await storage.containsKey(key: 'token')}');
debugPrint('[DEBUG]: Contains Account ID: ${await storage.containsKey(key: 'account_id')}');
return true;
} catch (e) {
debugPrint('[DEBUG]: logout ERROR $e');
}
return false;
}