title: Securing password client side Firebase
body: <p>I'm currently following this <a href="https://www.firebase.com/docs/web/guide/login/password.html" rel="nofollow">Email &amp; Password Authentication tutorial</a> from Firebase.</p>
  
  <p>Here is the basic code for logging in with email and password:</p>
  
  <pre><code>var ref = new Firebase("https://&lt;YOUR-FIREBASE-APP&gt;.firebaseio.com");
  ref.authWithPassword({
    email    : "bobtony@firebase.com",
    password : "correcthorsebatterystaple"
  }, function(error, authData) {
    if (error) {
      console.log("Login Failed!", error);
    } else {
      console.log("Authenticated successfully with payload:", authData);
    }
  });
  </code></pre>
  
  <p>For each page I navigate through on my website, do I need to re-authenticate with the email and password credentials to access the database?</p>
  
  <p>And if so, how do I pass the <code>email</code> and <code>password</code> through the web pages without making the password vulnerable to exposure.</p>
  
  <p>I'm very new to security, and don't want to run in to any security issues or data leaks, hence the reason I'm relying on third-party services.</p>