This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/pods/application/route.js
Matthew Dillon 21e0e6c624 Linting
2015-11-12 05:54:18 -07:00

15 lines
383 B
JavaScript

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;
});
},
},
});