diff --git a/client/src/app/core/auth/auth.service.ts b/client/src/app/core/auth/auth.service.ts index 522efb23c..4a8814c4e 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'])