Replies: 1 comment 3 replies
-
I assume you've tried updating to the latest |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having an issue verifying JWTs signed with an Ed25519 JWK when using Miniflare. On Node 16.16 everything is fine, but any version of Node greater than that, verification fails.
I think this is closely related to #446.
In tracing through the code flow, I can see what the issue is caused by what's coming back from
crypto.importJwk()
.On Node 16.16, the imported JWK looks approximately like this:
When that's later passed to
jose.verifyJwt()
, thenamedCurve
property is used to determine how to complete the signature verification.On Node 16.17 and higher, the imported JWK is missing the
namedCurve
property:This PR to Node.js seems to be the culprit, but after reading through the changes, I can't isolate exactly what broke this behavior or what can be done to fix it.
Any tips?
Beta Was this translation helpful? Give feedback.
All reactions