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

Parameter kid appears in header even if not specified by the node #16

Open
telperion opened this issue May 16, 2023 · 0 comments
Open

Comments

@telperion
Copy link

When generating a JWT with this node, the kid parameter is always included in the JOSE header even if that field is blank (it is set to the empty string). The presence of kid is causing some downstream APIs to refuse the token - which, admittedly, is probably their fault, but I'm hoping it's less friction to tidy up the token being produced.

                jwt.sign(msg[node.signvar],
                        node.secret,
                        {algorithm: node.alg, expiresIn: node.exp, keyid: node.jwkkid || null}, function (err, token) {
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

1 participant