-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebaseConfig.js
More file actions
29 lines (24 loc) · 1.02 KB
/
firebaseConfig.js
File metadata and controls
29 lines (24 loc) · 1.02 KB
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 AsyncStorage from "@react-native-async-storage/async-storage";
import { initializeApp } from "firebase/app";
import { getReactNativePersistence, initializeAuth } from "firebase/auth";
import { getFirestore } from "firebase/firestore";
import { getStorage } from "firebase/storage";
/* Kommentera in detta om du vill använda från datorn och kommentera ut auth på rad 23 */
// import { getAuth } from "firebase/auth";
// export const auth = getAuth(app);
const firebaseConfig = {
apiKey: "AIzaSyD6SCHQ-4fUscJS8-UWMJdngtqFQtsJ0zI",
authDomain: "roots-cd39a.firebaseapp.com",
projectId: "roots-cd39a",
storageBucket: "roots-cd39a.firebasestorage.app",
messagingSenderId: "872631865213",
appId: "1:872631865213:web:f134fe9fb5cdf2fe4c0614",
measurementId: "G-YNGG0LDKX4",
};
const app = initializeApp(firebaseConfig);
export const auth = initializeAuth(app, {
persistence: getReactNativePersistence(AsyncStorage),
});
export const db = getFirestore(app);
export const storage = getStorage(app);
export default app;