|
|
|
|
@ -82,10 +82,8 @@ class BaseAppClient {
|
|
|
|
|
} else {
|
|
|
|
|
var parsed = json.decode(response.body.toString());
|
|
|
|
|
if (!parsed['IsAuthenticated']) {
|
|
|
|
|
// TODO commented this and make si success just for test
|
|
|
|
|
// await helpers.logout();
|
|
|
|
|
// helpers.showErrorToast('Your session expired Please login again');
|
|
|
|
|
onSuccess(parsed, statusCode);
|
|
|
|
|
await helpers.logout();
|
|
|
|
|
helpers.showErrorToast('Your session expired Please login again');
|
|
|
|
|
} else if (parsed['MessageStatus'] == 1) {
|
|
|
|
|
onSuccess(parsed, statusCode);
|
|
|
|
|
} else {
|
|
|
|
|
|