Package Exports
- passport-trello
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (passport-trello) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Trello strategy for passport
Install
$ npm install passport-trello
Simple usage (CoffeeScript):
TrelloStrategy = require('passport-trello').Strategy
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 not req.user
# user is not authenticated, log in via trello or do something else
else
# authorize user to use Trello api
)