session expired

This commit is contained in:
CHIEFSOFT\ameye
2023-11-15 19:40:58 -05:00
parent 58ad6fca16
commit 150f5fd883
3 changed files with 24 additions and 2 deletions
+15 -1
View File
@@ -35,9 +35,23 @@ export class WrenchService {
);
/*
We have to check if this sessio
{"status_msg":"invalid_session_msg","internal_return":"-9999"}
*/
// if (apiReturn.internal_return == -9999){
//
// }
apiReturn.pipe().subscribe(ret => {
//alert('Todays report: ' + internal_return);
if (ret["internal_return"] == -9999){
console.log("AMEYE**** ",ret["internal_return"]);
this.sessionDataProviderService.DestroySessionOnLogout();
this.router.navigate(['login']);
}
});
console.log("apiReturn --->",apiReturn);
return apiReturn;
}