myartsev / ember-simple-auth-jwt

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

Nothing significant happens if a token fails validation #13

Closed myartsev closed 7 years ago

myartsev commented 7 years ago

addon/authenticators/jwt.js

    if (!this._validate(response)) {
      RSVP.Promise.reject('token is missing or invalid in server response');
    }

If a token fails validation we don't really do anything with that result and continue as if everything is fine.