Closed glynnbird closed 1 year ago
In issue https://github.com/apache/couchdb-nano/issues/174#issuecomment-1378427726 it was pointed out that cookie authentication seemed to be broken. I checked and it seemed to be the case.
I updated the dependencies and checked the implementation of Axios's cookie handling.
This problem is now fixed so you can do:
const Nano = require('nano') const nano = Nano('http://127.0.0.1:5984') const main = async () => { await nano.auth('myusername', 'mypassword') const r = await nano.db.list() } main()
nano.auth
Overview
In issue https://github.com/apache/couchdb-nano/issues/174#issuecomment-1378427726 it was pointed out that cookie authentication seemed to be broken. I checked and it seemed to be the case.
I updated the dependencies and checked the implementation of Axios's cookie handling.
This problem is now fixed so you can do:
Testing recommendations
nano.auth
insteadChecklist