I got error SHA256 is not supported (we accept pull requests) when verifying jwt. Dig the code and notice that crypto package has this exports exports.sha256 = require('./sha256')(Buffer, Hash)
This PR just lowercases the first argument to 'sha' + bits for createHmac method in createHmacSigner function.
I got error
SHA256 is not supported (we accept pull requests)
when verifying jwt. Dig the code and notice that crypto package has this exportsexports.sha256 = require('./sha256')(Buffer, Hash)
This PR just lowercases the first argument to
'sha' + bits
forcreateHmac
method increateHmacSigner
function.