Auto logout if session invalid
This commit is contained in:
parent
b858751146
commit
0e27f5f2af
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ Future<bool> checkSessionExist() async {
|
|||
if (res['statusCode'] == 200) {
|
||||
return true;
|
||||
}
|
||||
removeSession();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue