Refresh token done

This commit is contained in:
Eudes Inácio
2022-06-10 09:42:41 +01:00
parent 1bdf3daf12
commit 4275d71a43
16 changed files with 19 additions and 93 deletions
@@ -25,6 +25,7 @@ export class MessagesOptionsPage implements OnInit {
}
ngOnInit() {
this.chatService.refreshtoken();
}
close(){
@@ -42,12 +43,6 @@ export class MessagesOptionsPage implements OnInit {
let body = { "roomId": this.roomId }
this.chatService.removeChatRoom(body).subscribe(res=>{
},(error: HttpErrorResponse) => {
if(error.status === 401){
this.chatService.refreshtoken()
this.closeChatRoom();
}
});
this.close();
}