-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.js
31 lines (27 loc) · 1.25 KB
/
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
27
28
29
30
31
// Import the functions you need from the SDKs you need
// import { initializeAuth, getReactNativePersistence } from 'firebase/auth';
// import AsyncStorage from '@react-native-async-storage/async-storage';
// import { getAuth } from "firebase/auth";
import ReactNativeAsyncStorage from "@react-native-async-storage/async-storage";
import { initializeApp, getApp } from "firebase/app";
import { initializeAuth, getReactNativePersistence } from 'firebase/auth'
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyDMCPbpms9TJCYiFGVkvZMEAGOOMAgcucg",
authDomain: "talktolisten-3f5db.firebaseapp.com",
projectId: "talktolisten-3f5db",
storageBucket: "talktolisten-3f5db.appspot.com",
messagingSenderId: "39131602680",
appId: "1:39131602680:web:09f76b882f81d9f8b2a50d",
measurementId: "G-8DXN41XVVN",
};
// initialize Firebase App
const app = initializeApp(firebaseConfig);
// initialize Firebase Auth for that app immediately
auth = initializeAuth(app, {
persistence: getReactNativePersistence(ReactNativeAsyncStorage)
});
export default auth;