summaryrefslogtreecommitdiff
path: root/src/actions/auth.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/auth.js')
-rw-r--r--src/actions/auth.js20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/actions/auth.js b/src/actions/auth.js
index f54563ae..2ca6a986 100644
--- a/src/actions/auth.js
+++ b/src/actions/auth.js
@@ -1,15 +1,23 @@
-export const COMPLETE_LOGIN = "COMPLETE_LOGIN";
+export const LOG_IN = "LOG_IN";
+export const LOG_IN_SUCCEEDED = "LOG_IN_SUCCEEDED";
export const LOG_OUT = "LOG_OUT";
-export const completeLogin = (payload) => {
+export function logIn(payload) {
return {
- type: COMPLETE_LOGIN,
+ type: LOG_IN,
payload
};
-};
+}
-export const logOut = () => {
+export function logInSucceeded(payload) {
+ return {
+ type: LOG_IN_SUCCEEDED,
+ payload
+ };
+}
+
+export function logOut() {
return {
type: LOG_OUT
};
-};
+}