brianloveswords/node-jws — pull request #9 by brianloveswords (2014-08-07 17:01:17+00:00)
Title: Throw a better error when no alg in header

[fixes #8]

This puts a check into `algoFromJWS` to make sure the `header.alg`
property exists before trying to return it. If it does not exist, we
explode early and with a descriptive error instead of exploding on a
`null` later on (damn you, null!)