Skip to content

Commit 9d1ad6a

Browse files
committed
Merge pull request auth0#21 from neonstalwart/patch-1
force jws to always parse the payload as JSON
2 parents 687ab7a + c0267ad commit 9d1ad6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var jws = require('jws');
22

33
module.exports.decode = function (jwt) {
4-
var decoded = jws.decode(jwt);
4+
var decoded = jws.decode(jwt, {json: true});
55
return decoded && decoded.payload;
66
};
77

0 commit comments

Comments
 (0)