Created
January 20, 2018 12:08
-
-
Save andrei-cacio/e3e55fa9fede7d2f4979be2384f70ae3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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