Fix refresh token expired handling
This commit is contained in:
parent
ecb455b6c4
commit
127d96b969
1 changed files with 1 additions and 1 deletions
|
@ -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'])
|
||||
|
|
Loading…
Reference in a new issue