Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  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 };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement