-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFirebase.js
25 lines (21 loc) · 884 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
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getAuth } from 'firebase/auth';
import firebaseAPIKey from "./apiKeys";
import { getDatabase } from "firebase/database";
// 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: firebaseAPIKey,
authDomain: "storyfy-70a92.firebaseapp.com",
projectId: "storyfy-70a92",
storageBucket: "storyfy-70a92.appspot.com",
messagingSenderId: "923980587085",
appId: "1:923980587085:web:0927ff31033fb0f8913c04",
databaseURL: "https://storyfy-70a92-default-rtdb.firebaseio.com/",
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
export const database = getDatabase(app);
export const auth = getAuth(app);