From 127d96b969891a73d76e257581e5fd81cd867480 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 4 Oct 2017 09:30:57 +0200 Subject: [PATCH] Fix refresh token expired handling --- client/src/app/core/auth/auth.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) -- 2.25.1