Merge pull request #34 from fedwiki/paul90/twitter-update
use @passport-js/passport-twitter
This commit is contained in:
commit
e648bf64a7
File diff suppressed because it is too large
Load Diff
|
@ -5,6 +5,7 @@
|
||||||
"author": "Paul Rodwell <paul.rodwell@btinternet.com> (http://rodwell.me)",
|
"author": "Paul Rodwell <paul.rodwell@btinternet.com> (http://rodwell.me)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@passport-js/passport-twitter": "^1.0.8",
|
||||||
"coffeescript": "^2.4.1",
|
"coffeescript": "^2.4.1",
|
||||||
"es6-promise": "^4.2.8",
|
"es6-promise": "^4.2.8",
|
||||||
"lodash": "^4.17.19",
|
"lodash": "^4.17.19",
|
||||||
|
@ -12,7 +13,6 @@
|
||||||
"passport-github2": "^0.1.12",
|
"passport-github2": "^0.1.12",
|
||||||
"passport-google-oauth20": "^2.0.0",
|
"passport-google-oauth20": "^2.0.0",
|
||||||
"passport-oauth2": "^1.6.1",
|
"passport-oauth2": "^1.6.1",
|
||||||
"passport-twitter": "github:paul90/passport-twitter#48b52556f48e4e8f7c55288baaf3ba3076eeba16",
|
|
||||||
"persona-pass": "^0.2.1",
|
"persona-pass": "^0.2.1",
|
||||||
"qs": "^6.7.0",
|
"qs": "^6.7.0",
|
||||||
"whatwg-fetch": "^3.2.0"
|
"whatwg-fetch": "^3.2.0"
|
||||||
|
|
|
@ -288,7 +288,7 @@ module.exports = exports = (log, loga, argv) ->
|
||||||
# Twitter Strategy
|
# Twitter Strategy
|
||||||
if argv.twitter_consumerKey? and argv.twitter_consumerSecret?
|
if argv.twitter_consumerKey? and argv.twitter_consumerSecret?
|
||||||
ids.push('twitter')
|
ids.push('twitter')
|
||||||
TwitterStrategy = require('passport-twitter').Strategy
|
TwitterStrategy = require('@passport-js/passport-twitter').Strategy
|
||||||
|
|
||||||
twitterStrategyName = callbackHost + 'Twitter'
|
twitterStrategyName = callbackHost + 'Twitter'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue