Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Commit

Permalink
[docs minor] shows the new auth apis
Browse files Browse the repository at this point in the history
* relates to #81, #77 and #73
* cc @beardtwizzle
  • Loading branch information
dscape committed Jun 20, 2012
1 parent 896c747 commit 9e15871
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

1 comment on commit 9e15871

@rapidrapids
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MUCH nicer, thanks

Please sign in to comment.