aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/auth/auth-interceptor.service.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-11 15:39:41 +0100
committerChocobozzz <me@florianbigard.com>2018-01-11 15:39:41 +0100
commitcfe1efd200f80239e19f94335364ac9ef3813c19 (patch)
tree3652d96e02ce8683885f3b5347ad0d51db853e69 /client/src/app/shared/auth/auth-interceptor.service.ts
parent82750da39617d0d14f4652f14a1a4ba7dd58e0cf (diff)
downloadPeerTube-cfe1efd200f80239e19f94335364ac9ef3813c19.tar.gz
PeerTube-cfe1efd200f80239e19f94335364ac9ef3813c19.tar.zst
PeerTube-cfe1efd200f80239e19f94335364ac9ef3813c19.zip
Fix http token interceptor
Diffstat (limited to 'client/src/app/shared/auth/auth-interceptor.service.ts')
-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