Skip to content

Instantly share code, notes, and snippets.

@jmurphyau
Created November 28, 2014 04:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmurphyau/ee0ba6aaceebec6da2b3 to your computer and use it in GitHub Desktop.
Save jmurphyau/ee0ba6aaceebec6da2b3 to your computer and use it in GitHub Desktop.
export default Ember.Object.extend({
previousUnauthorizedTransition: null,
token: localStorage.token,
username:null,
tokenChanged: function() {
localStorage.token = this.get('token');
}.observes('token')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment