Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import firebase from "firebase/app";
import 'firebase/auth';
import StyledFirebaseAuth from 'react-firebaseui/StyledFirebaseAuth';
var config = {
apiKey: "<key>",
authDomain: "",
databaseURL: "",
projectId: "unicorn-platform-app",
storageBucket: "",
messagingSenderId: "<senderId>"
firebase.auth().onAuthStateChanged(function(user) {
// if (user) {
// User is signed in and currentUser will no longer return null.
// } else {
// No user is signed in.
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment