diff options
author | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-07-30 02:31:41 -0400 |
---|---|---|
committer | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-07-30 02:31:41 -0400 |
commit | 8043766813d751fe9c962f9691bb714d6ab2ba9c (patch) | |
tree | 0bb2a67792aeeee7b0f1d65f8b6d502ed5840253 /src/actions/firebase.js | |
parent | b311b6e9c2cb1865e66a4da45b5305ebc8b0ed77 (diff) |
Developed more styling and backend for account page.
Diffstat (limited to 'src/actions/firebase.js')
-rw-r--r-- | src/actions/firebase.js | 18 |
1 files changed, 10 insertions, 8 deletions
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 |