load method
Implementation
Future load() async {
try {
final response = await '/api/credential'.api().get(
timeout: const Duration(seconds: 10),
);
App.credential.load(response.data);
} on AppNetworkResponseException catch (_) {
App.api.clearCredentialCache();
} on Exception catch (err) {
return Future.error(err.toString());
}
}