1.1.0 • Published 28 days ago

passport-trello v1.1.0

Weekly downloads
496
License
MIT
Repository
github
Last release
28 days ago

Trello strategy for passport


Install

$ npm i -S passport-trello

Simple usage:

const { Strategy: TrelloStrategy } = require('passport-trello');

passport.use('trello', new TrelloStrategy(
    {
        consumerKey: TRELLO_ID,
        consumerSecret: TRELLO_SECRET,
        callbackURL: TRELLO_CALLBACK,
        passReqToCallback: true,
        trelloParams: {
            scope: "read,write",
            name: "MyApp",
            expiration: "never",
        },
    }
    (req, token, tokenSecret, profile, done) => {
        if (!req.user) {
            # user is not authenticated, log in via trello or do something else
        } else {
            # authorize user to use Trello api
        }
    }
));
1.1.0

28 days ago

1.0.0

2 years ago

0.1.5

8 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago