Skip to content

Commit

Permalink
Merge 4ed041c into 81101ac
Browse files Browse the repository at this point in the history
  • Loading branch information
webstersx committed Oct 16, 2015
2 parents 81101ac + 4ed041c commit bf96379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class TwitterTokenStrategy extends OAuthStrategy {

let token = (req.body && req.body[this._oauthTokenField]) || (req.query && req.query[this._oauthTokenField]);
let tokenSecret = (req.body && req.body[this._oauthTokenSecretField]) || (req.query && req.query[this._oauthTokenSecretField]);
let userId = (req.body && req.body[this._userIdField]) || (req.query && req.query[this._userIdField]);
let userId = (req.body && req.body[this._userIdField]) || (req.query && req.query[this._userIdField]) || (token.substr(0, token.indexOf('-')));

if (!token) return this.fail({message: `You should provide ${this._oauthTokenField} and ${this._oauthTokenSecretField}`});

Expand Down

0 comments on commit bf96379

Please sign in to comment.