Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
token_local_datasource.dart
Go to the documentation of this file.
1import '../../../../../core/constants/strings.dart';
2import '../../../../../core/storage/flutter_secure_storage.dart';
3
4class TokenLocalDataSource extends SecureStorage {
6
7 Future<void> saveToken({required String token}) async {
8 await super.save(value: token);
9 }
10
11 Future<void> deleteToken() async {
12 await super.delete();
13 }
14
15 Future<String?> fetchToken() async {
16 final token = await super.get();
17 return token;
18 }
19}
Future< String?> fetchToken() async
Future< void > deleteToken() async
TokenLocalDataSource({super.key=Strings.tokenKey})
Future< void > saveToken({required String token}) async
static const String tokenKey
Definition strings.dart:8
final double value