-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebase.js
More file actions
32 lines (27 loc) · 797 Bytes
/
firebase.js
File metadata and controls
32 lines (27 loc) · 797 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
32
/*
* @bainloko
* DDM II
* 03/04/2022
*/
// Import the functions you need from the SDKs you need
import * as firebase from "firebase";
// 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
const firebaseConfig = {
apiKey: "AIzaSyCUTWNElxxucFBtn8HI8TqZo9tURxaddto",
authDomain: "fir-auth-81feb.firebaseapp.com",
projectId: "fir-auth-81feb",
storageBucket: "fir-auth-81feb.appspot.com",
messagingSenderId: "1010379543141",
appId: "1:1010379543141:web:55091aae5e39954227ec8c"
};
// Initialize Firebase
let app;
if (firebase.apps.length === 0) {
app = initializeApp(firebaseConfig);
} else {
app = firebase.app();
}
const auth = firebase.auth();
export { auth };