title: Firebase/NodeJS behind proxy server
body: <p>How do I run Firebase admin on NodeJS when the computer is behind a corporate proxy?</p>
  
  <p>npm has already config proxy and https-proxy. npm commands executes alright.</p>
  
  <p>Firebase however, tries to directly access the internet:</p>
  
  <blockquote>
    <p>Error: Credential implementation provided to initializeApp() via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "connect ETIMEDOUT 216.58.203.45:443".</p>
  </blockquote>
  
  <p>I tried to update the faye-websocket\lib\faye\websocket\client.js under firebase-admin to read</p>
  
  <pre><code>  var Client = function(_url, protocols, options) {
    options = options || {};
    options.proxy = {
      origin: 'http://proxy.server.local:8080'
    };
  </code></pre>
  
  <p>I tried several variations, but nodejs is still trying to directly access 216.58.203.45:443. What else should I update to make it work?</p>