Last active
May 23, 2018 20:28
-
-
Save monkov/5a90828fec66ed569d4043d634866b96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return next.handle(req).catch(err => { | |
console.log(err); | |
if (err.status === 401) { | |
if (err.error.message == "Token is exp") { | |
//TODO: Token refreshing | |
}else { | |
//Logout from account or do some other stuff | |
} | |
} | |
return Observable.throw(err); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment