-
Notifications
You must be signed in to change notification settings - Fork 0
/
fbConfig.js
29 lines (24 loc) · 976 Bytes
/
fbConfig.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
const admin = require("firebase-admin");
const firebase = require("firebase")
const serviceAccount = require("./service-account.json");
require("firebase/auth");
const firebaseConfig = {
apiKey: "AIzaSyBK-r2yte589-ongIr8qEhBw0-VhRE00DY",
authDomain: "kanban-3048a.firebaseapp.com",
databaseURL: "https://kanban-3048a.firebaseio.com",
projectId: "kanban-3048a",
storageBucket: "kanban-3048a.appspot.com",
messagingSenderId: "890765008169",
appId: "1:890765008169:web:239befd2df5fa1e567eb38",
measurementId: "G-XTVDVQP8LW"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL: "https://kanban-3048a.firebaseio.com"
});
const db = admin.database();
var provider = new firebase.auth.GoogleAuthProvider();
provider.addScope('https://www.googleapis.com/auth/contacts.readonly');
module.exports = {firebase, admin, provider}