From 8043766813d751fe9c962f9691bb714d6ab2ba9c Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Mon, 30 Jul 2018 02:31:41 -0400 Subject: Developed more styling and backend for account page. --- src/actions/firebase.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/actions') diff --git a/src/actions/firebase.js b/src/actions/firebase.js index becc62e..2d24908 100644 --- a/src/actions/firebase.js +++ b/src/actions/firebase.js @@ -42,10 +42,11 @@ export const authFail = (errorCode) => { export const authSuccess = (_user) => { alert('Sign In Success'); return { - type: AUTH_SUCCESS, - payload: true, - code: "Success", - uid: _user.uid + type: AUTH_SUCCESS, + payload: true, + code: "Success", + uid: _user.uid, + userEmail: _user.email } } @@ -57,10 +58,11 @@ export const signOut = () => (dispatch) => { export const authSignOut = () => { return { - type: AUTH_SIGN_OUT, - payload: false, - code: "Signed Out User", - uid: null + type: AUTH_SIGN_OUT, + payload: false, + code: "Signed Out User", + uid: "", + userEmail: "" } } //End Firebase Auth -- cgit v1.2.3-70-g09d2