# passport-clever

> Clever authentication strategy for Passport

Latest version **1.0.2** (published 2021-05-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install passport-clever
pnpm add passport-clever
yarn add passport-clever
bun add passport-clever
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-05-14 |
| First published | 2020-07-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 8.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rachel Lim |
| Maintainers | raclim |
| Keywords | passport, clever, oauth, oauth2 |

## Links

- npm: https://www.npmjs.com/package/passport-clever
- Repository: https://github.com/raclim/passport-clever
- Homepage: https://github.com/raclim/passport-clever#readme
- Issues: https://github.com/raclim/passport-clever/issues
- npm.io page: https://npm.io/package/passport-clever

## Dependencies (4)

- [js-base64](https://npm.io/package/js-base64.md) ^3.6.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1
- [querystring](https://npm.io/package/querystring.md) ^0.2.1
- [passport-oauth2](https://npm.io/package/passport-oauth2.md) ^1.5.0

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2021-05-14
- 1.0.1 — 2020-07-07
- 1.0.0 — 2020-07-06

## README

# Clever Instant Login for Passport.js 

Passport strategy for Instant Login with Clever

## Installation 
Install the package via npm: `npm install passport-clever`

## Usage 
Initialize the strategy as follows: 

    ```js
    const CleverStrategy = require('passport-clever');
    passport.use(new CleverStrategy({
        clientID: "",
        clientSecret: "",
        callbackURL: "",
        passReqToCallback: true
    }, function(req, accessToken, refreshToken, profile, cb) {
    cb(null, accessToken);
    }));
    ```

Add the login route: 
`app.get("/login", passport.authenticate('clever'));`

## Disclaimer 
This repository is NOT developed, endorsed by, or even related at all to Clever. This library was implemented solely by the community's hardwork, and based on information that is public on Clever Developer's website. The library merely acts as a helper tool for anyone trying to implement Clever's Instant Login.

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