Skip to content

Commit

Permalink
making sure random secret is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
bkimminich committed Oct 4, 2014
1 parent 2b8008d commit 7f72ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/insecurity.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function isAuthorized(role) {
exports.isAuthorized = isAuthorized;

function denyAll() {
return expressJwt({secret: Math.random()});
return expressJwt({secret: ''+Math.random()});
}
exports.denyAll = denyAll;

Expand Down

0 comments on commit 7f72ca9

Please sign in to comment.