@nanoexpress/middleware-passport
v1.0.4
Published
PassportJS middleware wrapper for nanoexpress
Downloads
19
Maintainers
Readme
PassportJS
PassportJS middleware wrapper for nanoexpress
Installation
npm i @nanoexpress/middleware-passport
# or
yarn add @nanoexpress/middleware-passport
Example
See the examples directory
Usage
See here for more info
ESM Module
import passportInitialize from '@nanoexpress/middleware-passport';
import passport from 'passport';
app.use(passportInitialize(config));
app.use(passport.session());
CJS Module
const passportInitialize = require('@nanoexpress/middleware-passport/cjs');
const passport = require('passport');
app.use(passportInitialize(config));
app.use(passport.session());
License
MIT