X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fauth%2Fauth-interceptor.service.ts;h=efcfc452b654d9ac6ebb91f94deb0d32124a82c5;hb=54c3a22faa04bf13eea37f39be9149fc5eb95737;hp=1e890d8f3846cba5003b871d62dda1f8da3c3dae;hpb=d592e0a9b2931c7c9cbedb27fb8efc9aaacad9bb;p=github%2FChocobozzz%2FPeerTube.git 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 { // Catch 401 errors (refresh token expired) return next.handle(authReq) .catch(err => { - if (err.status === 401) { + if (err.status === 401 && err.error && err.error.code === 'invalid_token') { return this.handleTokenExpired(req, next) }