Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Passport for Lad

License

NotificationsYou must be signed in to change notification settings

ladjs/passport

build statuscode stylestyled with prettiermade with lasslicense

Passport for Lad

Table of Contents

Install

npm:

npm install @ladjs/passport

Usage

constPassport=require('@ladjs/passport');constkoa=require('koa');constmongoose=require('mongoose');constpassportLocalMongoose=require('passport-local-mongoose');constUser=newmongoose.Schema();User.plugin(passportLocalMongoose,{// ...});constUsers=mongoose.model('User',UserSchema);constpassport=newPassport({},Users);constapp=newKoa();app.use(passport.initialize());app.use(passport.session());

Strategies

Currently supported strategies:

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

Options

Seeindex.js for configuration defaults and environment flags.

You can customize the field names and phrases, see thefields andphrases objects inindex.js.

Contributors

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

License

MIT ©Nick Baugh

About

Passport for Lad

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp