Skip to content
Snippets Groups Projects
Commit 5ae55f32 authored by ["Younes MHARRECH"]'s avatar ["Younes MHARRECH"]
Browse files

logout when token expired in refrsh map

parent 472e5492
Branches
Tags
No related merge requests found
...@@ -37,6 +37,7 @@ export class HomemapComponent implements OnInit { ...@@ -37,6 +37,7 @@ export class HomemapComponent implements OnInit {
this.authService.getUserProfile(id).subscribe((res) => { this.authService.getUserProfile(id).subscribe((res) => {
if (typeof res === "string") { if (typeof res === "string") {
console.log(res); console.log(res);
this.authService.doLogout();
} }
else{ else{
this.currentUser = res as User; this.currentUser = res as User;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment