-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.js
26 lines (23 loc) · 945 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
26
// Import the functions you need from the SDKs you need
import { initializeApp } from 'firebase/app'
import { getAuth, initializeAuth } from 'firebase/auth'
import { getFirestore } from 'firebase/firestore'
import { getReactNativePersistence } from 'firebase/auth/react-native'
import AsyncStorage from '@react-native-async-storage/async-storage'
// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: 'AIzaSyDmNsc-iT0ww7VFqgV4Kj0GYLpUvynPrjw',
authDomain: 'employeetracker-761e2.firebaseapp.com',
projectId: 'employeetracker-761e2',
storageBucket: 'employeetracker-761e2.appspot.com',
messagingSenderId: '85456797281',
appId: '1:85456797281:web:d2ef9c1888f290157c3420',
}
// Initialize Firebase
const app = initializeApp(firebaseConfig)
// const auth = getAuth(app);
const auth = initializeAuth(app, {
persistence: getReactNativePersistence(AsyncStorage),
})
const db = getFirestore(app)
export { auth, db }