colinskow / superlogin

Powerful authentication for APIs and single page apps using the CouchDB ecosystem which supports a variety of providers.
MIT License
369 stars 116 forks source link

Howto: use superlogin with current nodejs #210

Open klues opened 4 years ago

klues commented 4 years ago

I'm opening this issue in order to:

This is my configuration for running superlogin on node 13.7.0:

Notes: I've tried to raise the version for pouchdb dependency to 7.1.1, but it did not work due to missing db.request method in this line. It's an undocumented method which seemingly got removed with major version 7. According to this pouchdb issue it should be possible to replace it with package pouchdb-ajax somehow.

So far my information status. Anyone who is running an more up-to-date version of superlogin - please describe how.

maxcodefaster commented 4 years ago

try npm install --no-optional

klues commented 4 years ago

Thanks for the hint, but for me it doesn't work due to the following error at install: leveldown@2.1.1 -> No prebuilt binaries found -> subsequent compiling fails

PhearZero commented 4 years ago

:sparkles: Here you go @klues #211 colinskow/pouchdb-seed-design#7 colinskow/sofa-model#2

fynnlyte commented 4 years ago

You can also check out my fork. It is migrated to TypeScript, works out of the box with modern NodeJS LTS and CouchDB - versions. The tests have been expanded. Dependencies have been reduced and are kept up to date. I've increased the security a lot by adhering to modern OWASP practises, e.g. in order to prevent email guessing.

So if you're starting a new project with CouchDB/PouchDB and stumbled upon superlogin, couch-auth is probably the best choice.

It's still not 1.0 though, so have an eye on the roadmap. I don't plan to make any radical changes to the data model and the routes anymore, though.

mqtik commented 3 years ago

@LyteFM I'll stay tuned for the npm package!

Ngomana commented 2 years ago

is this package still maintained?