1
0
Fork 0

Fix refresh token expired handling

This commit is contained in:
Chocobozzz 2017-10-04 09:30:57 +02:00
parent ecb455b6c4
commit 127d96b969
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -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'])