base_project

This commit is contained in:
2026-09-19 03:57:06 +00:00
commit e497faa322
1528 changed files with 79821 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');
}
}