Skip to content

Commit

Permalink
Imported Needed Modules for Emulators
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickchen8 committed Nov 22, 2024
1 parent 9b13d49 commit 7d29a66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utilities/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { useCallback, useEffect, useState } from 'react';
import { initializeApp } from "firebase/app";
// so apparently we were getting errors because there were a ref from both database and storage,
//so they were overwriting other. so if we rename them that can fix it
import { getDatabase, onValue, ref as databaseRef, update } from 'firebase/database';
import { getDatabase, onValue, ref as databaseRef, update, connectDatabaseEmulator } from 'firebase/database';
import { getStorage, ref as storageRef, uploadBytes, getDownloadURL } from 'firebase/storage';
import { getAuth, GoogleAuthProvider, onAuthStateChanged, signInWithPopup, signOut, getAdditionalUserInfo } from 'firebase/auth'; // AUTH STUFF
import { getAuth, GoogleAuthProvider, onAuthStateChanged, signInWithCredential, signInWithPopup, signOut, getAdditionalUserInfo, connectAuthEmulator } from 'firebase/auth'; // AUTH STUFF



Expand Down

0 comments on commit 7d29a66

Please sign in to comment.