generated from coodesh/mobile-challenge-20240202
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.config.js
23 lines (21 loc) · 950 Bytes
/
firebase.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { initializeApp } from "firebase/app";
import { getAuth } from "firebase/auth";
import { getFirestore } from 'firebase/firestore';
import { initializeAuth, getReactNativePersistence } from "firebase/auth";
import ReactNativeAsyncStorage from '@react-native-async-storage/async-storage';
import { getApps } from "firebase/app";
const firebaseConfig = {
apiKey: "AIzaSyCJ6mip5AienfkrR9O0U54_y2JqW0sfK_k",
authDomain: "mobile-dictionary-bfe6e.firebaseapp.com",
projectId: "mobile-dictionary-bfe6e",
storageBucket: "mobile-dictionary-bfe6e.firebasestorage.app",
messagingSenderId: "996683014454",
appId: "1:996683014454:web:6b8a4b7666b03830c25397"
};
const app = !getApps().length ? initializeApp(firebaseConfig) : getApps()[0];
initializeAuth(app, {
persistence: getReactNativePersistence(ReactNativeAsyncStorage)
});
// Initialize Firebase
export const FIREBASE_AUTH = getAuth(app);
export const FIREBASE_DB = getFirestore(app);