import 'package:flutter_secure_storage/flutter_secure_storage.dart'; class TokenStore { static const _tokenKey = 'auth_token'; static const _organizationKey = 'organization_id'; const TokenStore(); FlutterSecureStorage get _storage => const FlutterSecureStorage(); Future read() => _storage.read(key: _tokenKey); Future write(String token) => _storage.write(key: _tokenKey, value: token); Future clear() => _storage.delete(key: _tokenKey); Future readOrganization() => _storage.read(key: _organizationKey); Future writeOrganization(String id) => _storage.write(key: _organizationKey, value: id); Future clearOrganization() => _storage.delete(key: _organizationKey); }