There is a small bug in the angular-jwt library, where it checks reponses for a 401 status, as the token might have been rejected.
The bug is, that the response can be undefined, if the internet connection is lost.
I’ve created and issue, and a PR, but I’m having some trouble, getting anyone to give it a look.
Issue with replication steps:
I know this isnt a gigantic bug, but using the library in a PWA or a Cordova/Ionic Hybrid App, it can produce problems.