import Ember from 'ember';

export default Ember.Component.extend({
    session: Ember.inject.service(),
    actions: {
        invalidateSession() {
            this.get('session').invalidate();
        }
    }
});

import Ember from 'ember';

export default Ember.Component.extend({
    session: Ember.inject.service(),
    actions: {
        invalidateSession() {
            this.get('session').invalidate();
            window.location = '/';
        }
    }
});

Reset window location on logout, to force clearing the datastore.
Reset window location on logout, to force clearing the datastore.
