forked from eatvio/eatvio_app
added invalid token chicking
This commit is contained in:
@@ -20,7 +20,7 @@ abstract class TokenStorage {
|
||||
}
|
||||
}
|
||||
|
||||
static Future<String> getTokenFromStorage() async => (await FlutterSecureStorage().read(key: 'token'))!;
|
||||
static Future<String?> getTokenFromStorage() async => await FlutterSecureStorage().read(key: 'token');
|
||||
|
||||
static saveTokenInStorage(String token) async {
|
||||
await FlutterSecureStorage().write(key: 'token', value: token);
|
||||
|
||||
Reference in New Issue
Block a user