-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebaseConfig.js
More file actions
31 lines (25 loc) · 955 Bytes
/
firebaseConfig.js
File metadata and controls
31 lines (25 loc) · 955 Bytes
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
30
31
import { initializeApp } from "firebase/app";
import { getFirestore, doc, setDoc } from "firebase/firestore";
import {
initializeAuth,
getReactNativePersistence,
GoogleAuthProvider,
signInWithPopup,
} from "firebase/auth";
import ReactNativeAsyncStorage from "@react-native-async-storage/async-storage";
const firebaseConfig = {
apiKey: "AIzaSyD_4r0LCsoQ3n2Bxw2sh-i-pVRFbSsQ66A",
authDomain: "blog-club-71bb2.firebaseapp.com",
projectId: "blog-club-71bb2",
storageBucket: "blog-club-71bb2.firebasestorage.app",
messagingSenderId: "928622657055",
appId: "1:928622657055:web:e0276a0e1f1be6a4571f2a",
measurementId: "G-7EW2LM8WSN",
};
const app = initializeApp(firebaseConfig);
const db = getFirestore(app);
const auth = initializeAuth(app, {
persistence: getReactNativePersistence(ReactNativeAsyncStorage),
});
const googleProvider = new GoogleAuthProvider();
export { auth, db, googleProvider, signInWithPopup, doc, setDoc };