Skip to content

Instantly share code, notes, and snippets.

@joshsmith
Created May 27, 2014 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshsmith/d6ee9f3c6c5eae5a7816 to your computer and use it in GitHub Desktop.
Save joshsmith/d6ee9f3c6c5eae5a7816 to your computer and use it in GitHub Desktop.
import TokenAuth from 'appkit/lib/token-auth';
export default {
name: "token-auth",
before: "store",
initialize: function(container, application) {
application.register('auth:main', TokenAuth);
application.inject('controller', 'auth', 'auth:main');
application.inject('route', 'auth', 'auth:main');
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment