Socialify

Folder ..

Viewing firebase.ts
15 lines (13 loc) • 392.0 B

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
import * as firebase from 'firebase/app';
import 'firebase/auth';

const config = {
    apiKey: 'MYAPIKEY',
    authDomain: 'AUTHDOMAIN.firebaseapp.com',
    databaseURL: 'https://DATABASEURL.firebaseio.com',
    projectId: 'PROJECTID',
    storageBucket: 'STORGAE BUCKET',
    messagingSenderId: 'MESSAGING SENDER ID'
  };

if (!firebase.apps.length) {
    firebase.initializeApp(config);
}