Skip to content

Commit 93f5543

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎index.js

+1-1
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)
Please sign in to comment.