Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 93f5543

Browse files
author
Chance Dickson
committed
Fix this referring to the global object instead of module.exports in verify()
1 parent 33b326f commit 93f5543

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ module.exports.verify = function(jwtString, secretOrPublicKey, options, callback
160160
var payload;
161161

162162
try {
163-
payload = this.decode(jwtString);
163+
payload = module.exports.decode(jwtString);
164164
} catch(err) {
165165
return done(err);
166166
}

0 commit comments

Comments
 (0)