This commit is contained in:
Arseni
2025-12-16 18:21:49 +03:00
parent 6ee146b95a
commit a2c05745ad
12 changed files with 180 additions and 88 deletions

View File

@@ -80,4 +80,12 @@ class OrganizationsProvider extends ChangeNotifier {
notifyListeners();
return true;
}
Future<void> reset() async {
_resource = Resource(data: []);
_currentOrg = null;
notifyListeners();
// Best-effort cleanup of stored selection to avoid using stale org on next login.
await SecureStorageService.delete(Constants.currentOrgKey);
}
}