Added log to interceptor

This commit is contained in:
Julius Gruber
2019-06-19 13:39:59 +02:00
parent 70c9050fad
commit 4bcc54befd
6 changed files with 49 additions and 2 deletions

View File

@@ -101,6 +101,8 @@ export class AuthInterceptor implements HttpInterceptor {
const token = authService.getToken();
let newReq;
console.log('intercept() request: ', req);
if (authService.isTokenExpired()) {
authService.setRedirectUrl(this.router.url);
// The access token is expired