Skip to content

raclim/passport-clever

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •