import Ember from 'ember'; import ApplicationRouteMixin from 'ember-simple-auth/mixins/application-route-mixin'; const { Route } = Ember; export default Route.extend(ApplicationRouteMixin, { actions: { invalidateSession: function() { this.get('session').invalidate().then(() => { // Wait until promise is resolved return true; }); }, }, });