base_project

This commit is contained in:
2026-09-17 05:28:35 +00:00
commit 570805ebe4
1528 changed files with 79792 additions and 0 deletions
@@ -0,0 +1,17 @@
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
class TokenManager {
static const storage = FlutterSecureStorage();
static Future<void> setToken(String token) async {
await storage.write(key: 'token', value: token);
}
static Future<String?> getToken() async {
return await storage.read(key: 'token');
}
static Future<void> removeToken() async {
await storage.delete(key: 'token');
}
}