chat interceptor added

This commit is contained in:
Eudes Inácio
2024-03-06 15:20:35 +01:00
parent d4c20457a2
commit af5d428134
4 changed files with 152 additions and 182 deletions
+6 -2
View File
@@ -119,9 +119,13 @@ export class TokenInterceptor implements HttpInterceptor {
if (environment.production) {
window.location.pathname = '/auth'
} else {
/* const pathBeforeGoOut = window.location.pathname */
const pathBeforeGoOut = window.location.pathname
console.log('Before auth',window.location.pathname)
this.router.navigateByUrl('/auth', { replaceUrl: true }).then(() =>{
this.httpErrorHandle.httpsSucessMessagge('sessonExpired')
if(pathBeforeGoOut != "/auth") {
this.httpErrorHandle.httpsSucessMessagge('sessonExpired')
}
})
}
return of(false);