title: How to get reference to Metamask account from Node.js
body: <p>i'm building -with my team- a dapp . 
  we will be using Ethereum . 
  So , when running code on the frontend with Web3.js , everything works fine but one of the requirements is to run it from the backend since it's related to a MongoDB database and it has a bunch of heavy treatments that need to be done on server-side </p>
  
  <pre><code> if (typeof web3 !== 'undefined') {
      web3 = new Web3(web3.currentProvider);
  } else {
      web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
  }
  </code></pre>
  
  <p>running this code on Node.js always results that it goes to the else block and that's not what we want . 
  Is there any method to get current Metamask reference with node.js ? </p>
  
  <p>Thanks</p>