## HCFirebase :bell: [Demo](http://localhost:3000/) --- ### What we completed - Switched authentication to firebase - Added automatic routing for logged in - Protected routes - Login + sign in ![To do](https://media.giphy.com/media/Wrlwh4k4Uz1o3imeZg/giphy.gif) --- ### Quick wins??? :bell: - Log in --- ### Important functions - ```firebase.auth().signInWithEmailAndPassword(email, password)``` - ```firebase.auth().createUserWithEmailAndPassword(email, password)``` - ```firebase.auth().signOut()``` - ```auth.onAuthStateChanged(function (user) { if (user) { setUserInfo(user); } else { setUserInfo(null); } });``` --- ### Things we are still confused about - Is there an easy way to search through your database? (can only see ID) - Firebase functions - what are they? should we have used them? :bell: --- ### What did we learn today? - Firebase takes much fewer lines of code to push to base - But we don't know if our code is secure or not ---
{"metaMigratedAt":"2023-06-15T09:51:30.953Z","metaMigratedFrom":"Content","title":"Untitled","breaks":true,"contributors":"[{\"id\":\"11eba2be-5fbb-4639-85ec-7ad40264d41d\",\"add\":426,\"del\":49},{\"id\":\"bd6764bd-ae37-4f90-bb83-98f8266bf1dd\",\"add\":624,\"del\":1}]"}
    186 views
   Owned this note