crypto.hkdf
support for PASETO token support
#15371
Labels
bug
Something isn't working
confirmed bug
We can reproduce this issue
node:crypto
node.js
Compatibility with Node.js APIs
What version of Bun is running?
1.1.36+ededc168c
What platform is your computer?
Darwin 24.1.0 arm64 arm
What steps can reproduce the bug?
Import the
paseto
module from NPM (a better version ofjwt
), get this error:the error comes from paseto calling
utils.promisify(crypto.hkdf)
, which is undefined in bunWhat is the expected behavior?
Module requires just fine because
crypto.hkdf
is defined.What do you see instead?
The above error
Additional information
PASETO calls itself a modern replacement to JWT and claims to be better in just about every way -- it'd be great to get support for it for those of us with existing projects using it in Node!
The text was updated successfully, but these errors were encountered: