Skip to content

Commit

Permalink
Fix this referring to the global object instead of module.exports
Browse files Browse the repository at this point in the history
… in `verify()`
  • Loading branch information
Chance Dickson committed Jul 9, 2015
1 parent 33b326f commit 93f5543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ module.exports.verify = function(jwtString, secretOrPublicKey, options, callback
var payload;

try {
payload = this.decode(jwtString);
payload = module.exports.decode(jwtString);
} catch(err) {
return done(err);
}
Expand Down

0 comments on commit 93f5543

Please sign in to comment.