aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/app/shared/auth/auth-interceptor.service.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/shared/auth/auth-interceptor.service.ts b/client/src/app/shared/auth/auth-interceptor.service.ts
index 1e890d8f3..efcfc452b 100644
--- a/client/src/app/shared/auth/auth-interceptor.service.ts
+++ b/client/src/app/shared/auth/auth-interceptor.service.ts
@@ -28,7 +28,7 @@ export class AuthInterceptor implements HttpInterceptor {
28 // Catch 401 errors (refresh token expired) 28 // Catch 401 errors (refresh token expired)
29 return next.handle(authReq) 29 return next.handle(authReq)
30 .catch(err => { 30 .catch(err => {
31 if (err.status === 401) { 31 if (err.status === 401 && err.error && err.error.code === 'invalid_token') {
32 return this.handleTokenExpired(req, next) 32 return this.handleTokenExpired(req, next)
33 } 33 }
34 34