Skip to content

Instantly share code, notes, and snippets.

@andrei-cacio
Created January 20, 2018 12:08
Show Gist options
  • Save andrei-cacio/e3e55fa9fede7d2f4979be2384f70ae3 to your computer and use it in GitHub Desktop.
Save andrei-cacio/e3e55fa9fede7d2f4979be2384f70ae3 to your computer and use it in GitHub Desktop.
import eventEmiter, { EVENTS } from './core/bus';
eventEmitter.on(EVENTS.AUTH.SUCCESS, () => {});
eventEmitter.on(EVENTS.AUTH.FAILED, () => {});
eventEmitter.trigger(EVENTS.AUTH.ATTEMPT, { user, pass });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment