1.0.1 • Published 4 years ago

passport-donationalerts v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

passport-donationalerts

DonationAlerts is a trademark or registered trademark of My.com B.V. "passport-donationalerts" is not operated by, sponsored by, or affiliated with My.com B.V. in any way.

Passport strategy for authenticating with DonationAlerts.

Installation

Simply run in your terminal:

$ npm install passport-donationalerts

Example usage

const passport = require('passport');
const daStrategy = require('passport-donationalerts').Strategy;

passport.use(new daStrategy({
        clientID: 12345,
        clientSecret: 'AbCdEfGHiJKlMNoP123456890',
        callbackURL: 'http://127.0.0.1/daCb/'
    },
    function (accessToken, refreshToken, profile, done) {
        // work with recieved tokens and profile here
    }
));

Read the Passport documentation for further information.

Special thanks

  • Bioblaze opensource repository for codebase