loadAccountFromCache<T extends Account> method
This should not be called, it is used to cache the account locally
Implementation
Future<T?> loadAccountFromCache<T extends Account>() async {
var json = await _authStorage.read(key: identifier);
if (json == null || json == '') return null;
try {
var data = Convert.jsonDecode(json);
return getAccountFromMap<T>(data);
} catch (exception) {
print(exception);
return null;
}
}