title: Firebase Admin SDK to Log user in from Server
body: <p>I have been using Firebase Admin SDK in my Node JS code for authenticating users from the server side.</p>
  
  <p>The Admin SDK provides a method <code>admin.auth().createUser()</code> to create new users.</p>
  
  <pre><code>admin.auth().createUser({
          email,
          password,
          displayName: name
      })
      .then(function(user) {
          console.log("Successfully created new user:", user.uid)
          return res.send(user)
      })
      .catch(function(err) {
          console.log("Error creating new user:", err)
          return res.send(err)
      })
  </code></pre>
  
  <p>But now how to make a user login like there is a method <code>auth.signInWithEmailAndPassword(email, pass)</code> in the Firebase Client SDK.</p>
  
  <p>There is a method on the firebase admin SDK to get the user info by Email <code>admin.auth().getUserByEmail(email)</code>. This method returns all the user information including password but that password is hashed. So now is there any workaround to have a proper authenticate users from Server.</p>