Skip to content

jwt: fix signing issue when using bun runtime (fixes #462) #585

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 1 commit into
base: master
Choose a base branch
from

Conversation

richardhenry
Copy link

@richardhenry richardhenry commented May 9, 2025

Fixes #462

This change is modeled after the Deno jwt shim which is similar. It might also make sense to just apply these changes to the jwt-node shim since they should be safe for either Bun or Node, but making this specific to Bun seems like a reasonable way to fix this for now.

I verified this fix manually for my use case, but we should probably add tests for Bun to make sure that this doesn't break in the future.

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.

TypeError occurs when using JWT Helpers with Bun
1 participant