Now with Partition Management

    passport-trello

    1.0.0 • Public • Published

    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
            }
        }
    ));

    Install

    npm i passport-trello

    DownloadsWeekly Downloads

    209

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    5 kB

    Total Files

    4

    Last publish

    Collaborators

    • fuwaneko