ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix refresh token expired handling
Chocobozzz127d96b96989
diff --git a/client/src/app/core/auth/auth.service.ts b/client/src/app/core/auth/auth.service.tsindex 522efb23ce..4a8814c4e4 100644--- a/client/src/app/core/auth/auth.service.ts+++ b/client/src/app/core/auth/auth.service.ts@@ -170,7 +170,7 @@ export class AuthService {.map(res => this.handleRefreshToken(res)).catch(res => {// The refresh token is invalid?- if (res.status === 400 && res.error === 'invalid_grant') {+ if (res.status === 400 && res.error.error === 'invalid_grant') {console.error('Cannot refresh token -> logout...')this.logout()this.router.navigate(['/login'])