Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

musii-passport

lucaslimao2ISC0.0.7

Authentication middleware in express

musii, express, authentication, node, nodejs

readme

musii-passport

Authentication middleware in express

const { authentication } = require('musii-passport')

const model = Model from mongoose

authentication(model)
const { passport } = require('musii-passport')

server.get(`/me`, passport, async (req, res) => {
 ...