Skip to content

Signing with undefined secret never gets resolved #286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
robertrossmann opened this issue Dec 22, 2016 · 1 comment · Fixed by #374
Open

Signing with undefined secret never gets resolved #286

robertrossmann opened this issue Dec 22, 2016 · 1 comment · Fixed by #374
Labels

Comments

@robertrossmann
Copy link

robertrossmann commented Dec 22, 2016

Currently there is a bug in node-jws where supplying undefined or other falsy value to secret results in the signing process never running to completion.

The solution for the problem is known and should probably be fixed upstream, but since this directly affects this library as well and given its popularity I thought I'd let you know. Perhaps you'd like to make sure secret has a value before handing it over to JWS for signing, I do not see much use of using undefined as my secret, anyway.

Good luck and merry Christmas! 🎁 🎅

@ziluvatar
Copy link
Contributor

After a breaking change detected on the fix developed for this issue, this bug remains open only for the case where the algorithm is none and the consumer is using callback-ish code style.
We'll need to think how to fix that or try to fix the bug in jws.

@ziluvatar ziluvatar reopened this Aug 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants