Skip to content
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

Support for custom sign / verify algorithms #34

Open
g-p-g opened this issue Oct 12, 2015 · 1 comment
Open

Support for custom sign / verify algorithms #34

g-p-g opened this issue Oct 12, 2015 · 1 comment

Comments

@g-p-g
Copy link

g-p-g commented Oct 12, 2015

Would you consider accepting an object for the algorithm parameter in jwsVerify, as well checking for the presence of opts.algo in jwsSign? This would involve checking for string vs object to decide whether to use jwa or use it as is.

This way someone could pass {sign: function, verify: function} to support custom algorithms without needing to rewrite this module.

@Teukros
Copy link

Teukros commented Mar 19, 2018

Let me refresh this topic since I have similar issue. Seems that there is a need for such feature - question is, on which level - node-jws or maybe node-jsonwebtoken (where I created PR for this already: auth0/node-jsonwebtoken#429)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants