ember-simple-auth: ember-simple-auth-devise invalidate() does nothing
ember-simple-auth-devise invalidate() does nothing.
/**
Does nothing
@method invalidate
@return {Ember.RSVP.Promise} A resolving promise
*/
invalidate: function() {
return Ember.RSVP.resolve();
}
Ember never logs out, not even if a log out is done from the back end.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 19 (11 by maintainers)
I just wanted to pass on my findings using ember-simple-auth and the gem ‘devise_token_auth’. I was required to send along the uid, client and access-token otherwise
/users/sign_outwould throw a 404. Hope this helps someone else. Thanks, @samselikoff for the example.In
app/authenticators/devise.js@7sedam7: you’re probably not mixing in the
ApplicationRouteMixinin your application route.@samselikoff Yes! That is what I was doing, send a DELETE to the backend.
In light of #204 and because I need to keep the session, I chose to disable sending session cookies for JSON requests.
At first I was getting these errors:
So, based on the Rack source code I made it work with:
app/controllers/application_controller.rb