如何在节点上使用 pouchdb-authentication?

How to use pouchdb-authentication on node?

我正在尝试在没有锁定的节点上使用 pouchdb 身份验证。在浏览器中,它工作正常,但是当我在节点中使用它时,我收到一些关于 PouchDB 没有方法登录的错误。这是一些代码。

有什么明显的错误吗?

pouchdb-authentication 不适用于在 Node.js 中工作。我会推荐 Nano 作为替代方案。 this Github issue.

中有一些讨论