-
Notifications
You must be signed in to change notification settings - Fork 33
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
Use @node-rs/jsonwebtoken to verify JWT faster #493
Comments
We have that library in our benchmarks (see this PR). At the moment, we are still investigating what benefits we could have by generally including Rust in our toolchain. |
I got it, thank you! I think you would benefit from Rust bindings, because it much faster than node:crypto |
We may consider sodium-native to replace node:crypto which is used by fastify/secure-session. and i found someone who implement sodium version: https://www.npmjs.com/package/@mgcrea/node-sodium-jwt. |
Wow, interesting, I'll check this out |
Based on the outcome of the benchmarks, and although I'm surprised that performance benefits change so much depending on the signing algorithm, at the moment we're not considering to integrate this library out of the box. My understanding is that it would be a replacement for this library anyway, so I'm not sure what we would do about it really. It's more an alternative to this library. |
For example the Rust based library lacks LRU cache that fast-jwt has, so in my opinion it still worth it 🙂 |
Hey! First of all, thank you for creating this awesome library.
Recently I found the package:
https://www.npmjs.com/package/@node-rs/jsonwebtoken
I was thinking, maybe you would consider to use this to verify JWT instead of node:crypto, as the package uses Rust bindings to verify JWT, and it works 3x faster than node:crypto.
What do you think?
The text was updated successfully, but these errors were encountered: