fix: some problems are fixed
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user