myartsev / ember-simple-auth-jwt

Ember Simple Auth extension for JWT
MIT License
9 stars 3 forks source link

Fixes #15 and #16 #28

Open agarcia17 opened 6 years ago

agarcia17 commented 6 years ago

15 Invalidate session if refresh token fails. After the session clears its data (isAuthenticated, authenticator, etc), it will then trigger the 'invalidationSucceeded' event. If using ESA's ApplicationRouteMixin, then the mixin will automatically handle the transitioning to the index route

16 Handle server responses that are not JSON string. We reject and pass the successful Response we got from fetch(). This gives the user the ability to handle it how they like in their catch block