// Initializes a connection to the Firebase DB

const admin = require('firebase-admin');
const { SERVICE_ACCOUNT_KEY } = require('../config');

module.exports = () => {
  admin.initializeApp({
    credential: admin.credential.cert(SERVICE_ACCOUNT_KEY),
    databaseURL: 'https://dittio-users.firebaseio.com',
  });
};


// Initializes a connection to the Firebase DB

const firebase = require('firebase');
const { FB_CONFIG } = require('../config');

module.exports = () => {
  firebase.initializeApp(FB_CONFIG);
};


switch FB init to access standard FB auth (vs. admin)