Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
fix BearerStrategy.call _extend leaving out req. fixes #112
Browse files Browse the repository at this point in the history
  • Loading branch information
dhodgin committed Jun 10, 2016
1 parent f4afd5b commit 159a80c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bearerstrategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function Strategy(options, verifyFn) {

// force passReqToCallback to be `true` for our decoding verify wrapper
/* eslint-disable no-underscore-dangle */
BearerStrategy.call(this, util._extend({}, opts, { passReqToCallback: true }), jwtVerify);
BearerStrategy.call(this, util._extend(opts, { passReqToCallback: true }), jwtVerify);
/* eslint-enable no-underscore-dangle */

this.name = 'oauth-bearer'; // Me, a name I call myself.
Expand Down

0 comments on commit 159a80c

Please sign in to comment.