Permalink
Browse files

[docs minor] shows the new auth apis

* relates to #81, #77 and #73
* cc @beardtwizzle
  • Loading branch information...
dscape committed Jun 20, 2012
1 parent 896c747 commit 9e15871105804f802e666c9c3f36d559ed779704
Showing with 1 addition and 7 deletions.
  1. +1 −7 README.md
View
@@ -463,13 +463,7 @@ var nano = require('nano')('http://localhost:5984')
, cookies = {} // store cookies, normally redis or something
;
-nano.request(
- { method : "POST"
- , db : "_session"
- , form : { name: username, password: userpass }
- ,content_type : "application/x-www-form-urlencoded; charset=utf-8"
- }
-, function (err, body, headers) {
+nano.auth(username, userpass, function (err, body, headers) {
if (err) {
return callback(err);
}

1 comment on commit 9e15871

Contributor

rapidrapids commented on 9e15871 Jun 21, 2012

MUCH nicer, thanks

Please sign in to comment.