aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/app/core/auth/auth.service.ts2
1 files changed, 1 insertions, 1 deletions
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 {
170 .map(res => this.handleRefreshToken(res)) 170 .map(res => this.handleRefreshToken(res))
171 .catch(res => { 171 .catch(res => {
172 // The refresh token is invalid? 172 // The refresh token is invalid?
173 if (res.status === 400 && res.error === 'invalid_grant') { 173 if (res.status === 400 && res.error.error === 'invalid_grant') {
174 console.error('Cannot refresh token -> logout...') 174 console.error('Cannot refresh token -> logout...')
175 this.logout() 175 this.logout()
176 this.router.navigate(['/login']) 176 this.router.navigate(['/login'])