Using Same Firebase App With Web and Mobile App
<p>So say I am building a web app using React and also a mobile app that allows users to take a photo using React Native. I want to allow users to use the same login credentials when signing into the web app and also the mobile app. Can I use the same Firebase info for both the web app and mobile app? Like just include the snippet below in both code bases to allow them to both use the same database, storage, etc? </p>

<pre><code>&lt;script src="https://www.gstatic.com/firebasejs/3.6.1/firebase.js"&gt;&lt;/script&gt;
&lt;script&gt;
  // Initialize Firebase
  // TODO: Replace with your project's customized code snippet
  var config = {
    apiKey: "&lt;API_KEY&gt;",
    authDomain: "&lt;PROJECT_ID&gt;.firebaseapp.com",
    databaseURL: "https://&lt;DATABASE_NAME&gt;.firebaseio.com",
    storageBucket: "&lt;BUCKET&gt;.appspot.com",
    messagingSenderId: "&lt;SENDER_ID&gt;",
  };
  firebase.initializeApp(config);
&lt;/script&gt;
</code></pre>