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
@@ -48,7 +48,7 @@ export class ChatOptionsFeaturesPage implements OnInit {
}
ngOnInit() {
this.chatService.refreshtoken();
}
notImplemented() {
@@ -118,12 +118,6 @@ export class ChatOptionsFeaturesPage implements OnInit {
this.chatService.sendMessage(body).subscribe(res=> {
//
},(error: HttpErrorResponse) => {
if(error.status === 401){
this.chatService.refreshtoken()
this.chatService.sendMessage(body);
}
});
//
};
@@ -149,12 +143,6 @@ export class ChatOptionsFeaturesPage implements OnInit {
this.chatService.sendMessage(body).subscribe(res=> {
},(error: HttpErrorResponse) => {
if(error.status === 401){
this.chatService.refreshtoken()
this.chatService.sendMessage(body);
}
});
}