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
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ export class HomemapComponent implements OnInit {
this.authService.getUserProfile(id).subscribe((res) => {
if (typeof res === "string") {
console.log(res);
this.authService.doLogout();
}
else{
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