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