Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Howto: use superlogin with current nodejs #210

Open
klues opened this issue Feb 4, 2020 · 6 comments
Open

Howto: use superlogin with current nodejs #210

klues opened this issue Feb 4, 2020 · 6 comments

Comments

@klues
Copy link

klues commented Feb 4, 2020

I'm opening this issue in order to:

  • share my experience how I've managed to get superlogin working with current nodejs
  • make a place for other people's experience to share how superlogin can be used with an up-to-date runtime/dependencies

This is my configuration for running superlogin on node 13.7.0:

  • I'm using the fork @sensu/superlogin as dependency in my project
  • for using a current version of couchdb -> leveldown dependency in package.json I'm using:
    "resolutions": {
     "@sensu/superlogin/**/leveldown": "5.4.1"
    }
    
    (original version of leveldown-dependency failed on npm install)
  • install the project with yarn package manager in order to respect the resolutions section in package.json
  • I'm using this start script in for starting superlogin

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
Copy link

try npm install --no-optional

@klues
Copy link
Author

klues commented Feb 6, 2020

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

@PhearZero
Copy link

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

@fynnlyte
Copy link

fynnlyte commented Apr 14, 2020

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
Copy link

mqtik commented Jul 24, 2020

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

@Ngomana
Copy link

Ngomana commented Apr 8, 2022

is this package still maintained?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants