-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebaseConfig.js
28 lines (23 loc) · 1.08 KB
/
firebaseConfig.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
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { initializeAuth, getReactNativePersistence, getAuth, GoogleAuthProvider } from 'firebase/auth';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { getFirestore } from 'firebase/firestore'
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyA6zBfI1GaFu5Yfc7n2A41fQBPs3txK3Bo",
authDomain: "quizfinity-614d5.firebaseapp.com",
projectId: "quizfinity-614d5",
storageBucket: "quizfinity-614d5.appspot.com",
messagingSenderId: "606821217711",
appId: "1:606821217711:web:af92d108b38ef0e69a6b5a",
measurementId: "G-XMRTLDHEEH"
};
// Initialize Firebase
export const FIREBASE_APP = initializeApp(firebaseConfig);
export const FIREBASE_AUTH = initializeAuth(FIREBASE_APP, {
persistence: getReactNativePersistence(AsyncStorage)
});
export const FIREBASE_DB = getFirestore(FIREBASE_APP);
export const googleProvider = new GoogleAuthProvider()