Howto: use superlogin with current nodejs
See original GitHub issueI’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 inpackage.json
I’m using:
(original version of leveldown-dependency failed on"resolutions": { "@sensu/superlogin/**/leveldown": "5.4.1" }
npm install
) - install the project with yarn package manager in order to respect the
resolutions
section inpackage.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.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
Node.js User Authentication Guide - LoginRadius Blog
Want to authenticate and manage users with specific roles in your Node.js app? This in-depth tutorial explains everything step-by-step to help you implement ......
Read more >How to do user login correctly with nodejs and express
I am very new to web development, and have been using Google as a guide. If I put a wrong login that does...
Read more >User Login · SuperTokens NodeJS
To login a user, you must first authenticate their credentials and then create a session for them so that they can access your...
Read more >The Complete Guide to Node.js User Authentication with Auth0
This tutorial demonstrates how to secure a Node.js web application built with the Express framework by implementing user authentication.
Read more >Implementing Passwordless Authentication in Node.JS
We'll go over a few of those things with a quick Node.js app. First, let's go over some of the different ways you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
✨ Here you go @klues #211 colinskow/pouchdb-seed-design#7 colinskow/sofa-model#2