diff --git a/app/sessions/custom.js b/app/sessions/custom.js deleted file mode 100644 index e5a8385..0000000 --- a/app/sessions/custom.js +++ /dev/null @@ -1,12 +0,0 @@ -import Session from 'simple-auth/session'; -import parseBase64 from '../utils/parse-base64'; - -export default Session.extend({ - currentUser: function() { - let token = this.get('secure.token'); - if (token && this.get('isAuthenticated')) { - let t = parseBase64(token); - return this._store.findRecord('user', t['sub']); - } - }.property('secure.token', 'isAuthenticated') -});