Skip to content

fix: convert publicKey to KeyObject for compatibility with Bun #254

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

italodeverdade
Copy link

@italodeverdade italodeverdade commented Apr 25, 2025

In previous versions of Bun, the publicKey was generated as a CryptoKey instead of a KeyObject, which caused compatibility issues with the library in the Bun environment. This PR adds support for transforming CryptoKey instances into KeyObjects, enabling Bun to successfully perform signature verifications.

Reference:
oven-sh/bun#16652

@italodeverdade italodeverdade changed the title fix: ensure publicKey is always as KeyObject instance fix: convert publicKey to KeyObject for compatibility with Bun Apr 25, 2025
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

Successfully merging this pull request may close these issues.

1 participant