Socket
Socket
Sign inDemoInstall

@ladjs/passport

Package Overview
Dependencies
11
Maintainers
5
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ladjs/passport

Passport for Lad


Version published
Weekly downloads
194
increased by870%
Maintainers
5
Created
Weekly downloads
 

Readme

Source

@ladjs/passport

build status code style styled with prettier made with lass license

Passport for Lad

Table of Contents

Install

npm:

npm install @ladjs/passport

Usage

const Passport = require('@ladjs/passport');
const koa = require('koa');
const mongoose = require('mongoose');
const passportLocalMongoose = require('passport-local-mongoose');

const User = new mongoose.Schema();
User.plugin(passportLocalMongoose, {
  // ...
});
const Users = mongoose.model('User', UserSchema);

const passport = new Passport({}, Users);

const app = new Koa();
app.use(passport.initialize());
app.use(passport.session());

Strategies

Currently supported strategies:

  • Local (email)
  • Apple (Sign in with Apple)
  • GitHub
  • Google
  • OTP

Options

See index.js for configuration defaults and environment flags.

You can customize the field names and phrases, see the fields and phrases objects in index.js.

Contributors

NameWebsite
Nick Baughhttp://niftylettuce.com/
Shaun Warmanhttps://shaunwarman.com/
shadowgate15https://github.com/shadowgate15

License

MIT © Nick Baugh

Keywords

FAQs

Last updated on 23 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc