набурмалдил

This commit is contained in:
Jganenok
2026-05-29 13:52:13 +07:00
parent e7f401b01d
commit 5a3890c55e
9 changed files with 369 additions and 108 deletions
+5
View File
@@ -24,6 +24,11 @@ class TokenStorage {
await prefs.setString(_activeAccountKey, accountId.toString());
}
static Future<void> clearActiveAccount() async {
final prefs = await SharedPreferences.getInstance();
await prefs.remove(_activeAccountKey);
}
static Future<int?> getActiveAccountId() async {
final prefs = await SharedPreferences.getInstance();
final val = prefs.getString(_activeAccountKey);