Last active
April 30, 2017 10:32
-
-
Save cmilfont/22d0520e4fc5bf8a7f733fe5d77de141 to your computer and use it in GitHub Desktop.
LogRocket identify
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
onAuthStateChanged = (user) => { | |
if (user) { | |
const { uid, name, email } = user; | |
window.LogRocket.identify(uid, { name, email }); | |
this.store.dispatch({ | |
type: actions.loginSuccess, | |
payload: { | |
user, | |
}, | |
}); | |
} else { | |
window.Raven.captureMessage('User not logged in', { | |
level: 'info' | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment