fix: some problems are fixed

This commit is contained in:
2026-07-05 18:40:53 +03:30
parent 5017e9a613
commit e94f03c499
16 changed files with 384 additions and 152 deletions
@@ -9,6 +9,9 @@ class AuthLocalData {
Future<String?> readToken() => _storage.read();
Future<void> clearToken() => _storage.clear();
Future<void> saveMobile(String mobile) => _storage.writeMobile(mobile);
Future<String?> readMobile() => _storage.readMobile();
Future<bool> hasToken() async {
final t = await _storage.read();
return t != null && t.isNotEmpty;