aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-04 09:30:57 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-04 09:30:57 +0200
commit127d96b969891a73d76e257581e5fd81cd867480 (patch)
treedc597151896bb15d8c83299cc511b73149158446
parentecb455b6c42bd75c9d87294c2479fa53b739d0a8 (diff)
downloadPeerTube-127d96b969891a73d76e257581e5fd81cd867480.tar.gz
PeerTube-127d96b969891a73d76e257581e5fd81cd867480.tar.zst
PeerTube-127d96b969891a73d76e257581e5fd81cd867480.zip
Fix refresh token expired handling
-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'])