myartsev/ember-simple-auth-jwt

If a token fails to refresh, the user still remains authenticated

Opened this issue · 0 comments

.catch((reason) => {
if(reason.responseJSON) {
reason = JSON.stringify(reason.responseJSON);
}
Ember.warn(`JWT token could not be refreshed: ${reason}.`, false, {
id: 'ember-simple-auth-jwt.failedJWTTokenRefresh'
});
reject();
});

Don't know what is the best way to go log out the user from a custom authenticator.
Pending on these two SO questions: