ndx-passport-twitter
ndx-framework apps
twitter login forinstall with
npm install --save ndx-passport-twitter
example
src/server/app.coffee
require 'ndx-server'config database: 'db'use ndx-passportuse ndx-passport-twitterstart
src/client/../login.jade
a(href='/api/twitter', target='_self') Twitter
environment/config variables
environment | config | description |
---|---|---|
TWITTER_KEY | twitterKey | your twitter key |
TWITTER_SECRET | twitterSecret | your twitter secret |
TWITTER_CALLBACK | twitterCallback | set this to http(s)://yourservername.com/api/twitter/callback |
TWITTER_SCOPE | twitterScope | a list of scopes you want access to |