SHARE
TWEET

Untitled

a guest Oct 19th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import firebase from 'firebase/app';
  2. import 'firebase/firestore';
  3. import 'firebase/auth';
  4.  
  5. // Get a Firestore instance
  6. console.log('Initialize firebase app');
  7. const app = firebase
  8.   .initializeApp({
  9.     projectId: '',
  10.     apiKey: '',
  11.   });
  12.  
  13. export const db = app.firestore();
  14. export const auth = app.auth();
  15.  
  16. // Export types that exists in Firestore
  17. // This is not always necessary, but it's used in other examples
  18. const { TimeStamp, GeoPoint } = firebase.firestore;
  19. export { TimeStamp, GeoPoint };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top