\r\n
\r\n

\r\n
\r\n There has been no activity for a long time.
\r\n In seconds, your session will end and\r\n you will be logged out\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n","\nimport { Observable } from 'rxjs';\nimport { Router } from '@angular/router';\nimport { AuthService } from 'src/app/modules/auth/services/auth.service';\nexport function appInitializer(authService: AuthService)\n{\n const refresh_token: any = localStorage.getItem('refresh_token');\n const id: any = localStorage.getItem('id');\n console.log(window.location.href);\n const url: any = window.location.href;\n return ()=> new Promise((resolve : any) =>{\n\n if (refresh_token && refresh_token != '' && refresh_token != 'undefined') {\n authService.getTokens(refresh_token,id).subscribe((response:any) => {\n // const token = {\n // IdToken: response.id_token,\n // refresh_token: response.refresh_token\n // }\n authService.setTokens(response);\n authService.startTokenUpdateTimer((response.expires_in / 60) - 5);\n if (url) {\n resolve(true);\n }\n\n }).add(resolve);\n } else{\n setTimeout(() => {\n resolve('foo');\n }, 300);\n }\n });\n\n\n}\n","import { Injectable } from '@angular/core';\nimport {\n HttpRequest,\n HttpHandler,\n HttpEvent,\n HttpInterceptor,\n HttpErrorResponse,\n} from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport { AuthService } from 'src/app/modules/auth/services/auth.service';\nimport { catchError } from 'rxjs/internal/operators/catchError';\nimport { tap } from 'rxjs/internal/operators/tap';\n\n@Injectable()\nexport class AuthInterceptor implements HttpInterceptor {\n constructor(private authService: AuthService) {}\n\n intercept(\n request: HttpRequest