question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Howto: use superlogin with current nodejs

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

3reactions
LyteFMcommented, Feb 18, 2022

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.

1reaction
PhearZerocommented, Apr 12, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found