Created
September 26, 2015 20:14
-
-
Save mattiamanzati/4d97c527447b2b4cde16 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var { | |
AUTH_SET_TOKEN, | |
AUTH_DISCARD_TOKEN, | |
AUTH_SET_USER | |
} = require('./constants'); | |
function authSetToken(token){ | |
return { | |
type: AUTH_SET_TOKEN, | |
token | |
}; | |
} | |
function authDiscardToken(){ | |
return { | |
type: AUTH_DISCARD_TOKEN | |
}; | |
} | |
function authSetUser(user){ | |
return { | |
type: AUTH_SET_USER, | |
user | |
}; | |
} | |
module.exports = { | |
authSetToken, | |
authDiscardToken, | |
authSetUser | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment