aboutsummaryrefslogtreecommitdiff
path: root/src/actions/firebase.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/firebase.js')
-rw-r--r--src/actions/firebase.js18
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