New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-user-auth

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-user-auth

Simple user authentication for your Express app

  • 1.2.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-85.71%
Maintainers
1
Weekly downloads
 
Created
Source

express-user-auth

Quickly add user authentication to your Express app

  • Works with any database
  • Passwords stored using bcrypt
  • TODO: Login with Facebook, Twitter, Google, or Github

Install

npm i express express-user-auth

Usage

import express from 'express'
import auth from 'express-user-auth'
 
const app = express()
 
app.use('/', auth({
  secret: 'abcdef',
  createUser: function (user) { return user },
  getUserByUsername: function (username) { return user },
  updateUser: function (data) { return user }
}))

app.listen(3000)

Routes

express-user-auth creates the following routes:

  • GET /login
  • POST /login
  • GET /register
  • POST /register

Screenshots

FAQs

Package last updated on 16 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc