- Notifications
You must be signed in to change notification settings - Fork2
ladjs/passport
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Passport for Lad
npm:
npm install @ladjs/passport
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());
Currently supported strategies:
- Local (email)
- Apple (Sign in with Apple)
- GitHub
- OTP
Seeindex.js for configuration defaults and environment flags.
You can customize the field names and phrases, see thefields andphrases objects inindex.js.
| Name | Website |
|---|---|
| Nick Baugh | http://niftylettuce.com/ |
| Shaun Warman | https://shaunwarman.com/ |
| shadowgate15 | https://github.com/shadowgate15 |
About
Passport for Lad
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors5
Uh oh!
There was an error while loading.Please reload this page.