-
Notifications
You must be signed in to change notification settings - Fork 1
/
firebase.js
29 lines (24 loc) · 833 Bytes
/
firebase.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Import the functions you need from the SDKs you need
import firebase from 'firebase/compat/app';
import 'firebase/compat/auth';
import 'firebase/compat/firestore';
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: "AIzaSyCI8eYhiw9TJoxKPcYwhydSBN5tZnhu9OA",
authDomain: "fir-auth-1a145.firebaseapp.com",
projectId: "fir-auth-1a145",
storageBucket: "fir-auth-1a145.appspot.com",
messagingSenderId: "294458922305",
appId: "1:294458922305:web:ec65831735b55289967dc0"
};
// Initialize Firebase
let app;
if(firebase.apps.length === 0) {
app = firebase.initializeApp(firebaseConfig);
} else {
app = firebase.app()
}
const auth = firebase.auth()
export { auth };