# @ladjs/passport

> Passport for Lad

Latest version **5.1.5** (published 2026-03-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ladjs/passport
pnpm add @ladjs/passport
yarn add @ladjs/passport
bun add @ladjs/passport
```

## Health

**Score 45/100 (D)** — status: active.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 5.1.5 |
| Published | 2026-03-24 |
| First published | 2017-12-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 11 |
| Unpacked size | 24.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Nick Baugh |
| Maintainers | niftylettuce, shaunwarman, spence-s, titanism, shadowgate15 |
| Keywords | api, auth, authentication, basic, boilerplate, framework, github, google, koa, lad, lass, list, login, mongo, mongodb, mongoose, oauth, oauth2, passport, strategies, strategy, twitter |

## Links

- npm: https://www.npmjs.com/package/@ladjs/passport
- Repository: https://github.com/ladjs/passport
- Issues: https://github.com/ladjs/passport/issues
- npm.io page: https://npm.io/package/@ladjs/passport

## Dependencies (11)

- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [boolean](https://npm.io/package/boolean.md) ^3.2.0
- [validator](https://npm.io/package/validator.md) ^13.11.0
- [koa-passport](https://npm.io/package/koa-passport.md) ^4.1.4
- [passport-ubuntu](https://npm.io/package/passport-ubuntu.md) ^0.2.0
- [passport-github2](https://npm.io/package/passport-github2.md) ^0.1.12
- [is-string-and-not-blank](https://npm.io/package/is-string-and-not-blank.md) ^0.0.2
- [passport-google-oauth20](https://npm.io/package/passport-google-oauth20.md) ^2.0.0
- [@nicokaiser/passport-apple](https://npm.io/package/@nicokaiser/passport-apple.md) ^1.0.1
- [@ladjs/passport-otp-strategy](https://npm.io/package/@ladjs/passport-otp-strategy.md) ^2.0.1
- [@forwardemail/passport-fido2-webauthn](https://npm.io/package/@forwardemail/passport-fido2-webauthn.md) ^0.1.0

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 5.1.5 (latest) — 2026-03-24
- 5.1.4 — 2024-04-23
- 5.1.3 — 2024-04-23
- 5.1.2 — 2024-04-22
- 5.1.1 — 2023-12-14
- 5.1.0 — 2023-12-13
- 5.0.3 — 2022-07-03
- 5.0.2 — 2022-06-07
- 5.0.1 — 2022-06-06
- 5.0.0 — 2022-06-02
- 4.0.1 — 2022-05-31
- 4.0.0 — 2022-05-31
- 3.0.0 — 2022-05-30
- 2.1.0 — 2020-09-12
- 2.0.2 — 2020-07-18
- … 9 more at https://npm.io/package/@ladjs/passport/versions

## README

# @ladjs/passport

[![build status](https://github.com/ladjs/passport/actions/workflows/ci.yml/badge.svg)](https://github.com/ladjs/passport/actions/workflows/ci.yml)
[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)
[![license](https://img.shields.io/github/license/ladjs/passport.svg)](LICENSE)

> Passport for Lad


## Table of Contents

* [Install](#install)
* [Usage](#usage)
* [Strategies](#strategies)
* [Options](#options)
* [Contributors](#contributors)
* [License](#license)


## Install

[npm][]:

```sh
npm install @ladjs/passport
```


## Usage

```js
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](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](index.js).


## Contributors

| Name             | Website                           |
| ---------------- | --------------------------------- |
| **Nick Baugh**   | <http://niftylettuce.com/>        |
| **Shaun Warman** | <https://shaunwarman.com/>        |
| **shadowgate15** | <https://github.com/shadowgate15> |


## License

[MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com/)


##

[npm]: https://www.npmjs.com/

---
_Source: https://npm.io/package/@ladjs/passport · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
