title: Authentication with node.js, nano and CouchDB
body: <p>Is there a way to change the config parameters in nano after initialization? I'd like to init nano with: </p>
  
  <pre><code>nano = require('nano')('http://127.0.0.1:5984')
  </code></pre>
  
  <p>and later change user and password, after a user submits the login form. I always get an error:</p>
  
  <pre><code>nano.cfg.user = params.user.name
  TypeError: Cannot set property 'user' of undefined
  </code></pre>
  
  <p>Or should I fork nano and write an auth function to adjust the values?</p>