Skip to content

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
@alexanderjordanbaker
Copy link
Collaborator

@italodeverdade Would we not just wait for Bun to fix the bug in their API? It looks like this has already been fixed on their end

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.

2 participants