ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix http token interceptor
Chocobozzzcfe1efd200f8
diff --git a/client/src/app/shared/auth/auth-interceptor.service.ts b/client/src/app/shared/auth/auth-interceptor.service.tsindex 1e890d8f38..efcfc452b6 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)}