Skip to content
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

Bun v1.1.26 seems not to support JsonWebToken (jsonwebtoken package) #13682

Open
exKAZUu opened this issue Sep 2, 2024 · 0 comments
Open

Bun v1.1.26 seems not to support JsonWebToken (jsonwebtoken package) #13682

exKAZUu opened this issue Sep 2, 2024 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@exKAZUu
Copy link

exKAZUu commented Sep 2, 2024

What version of Bun is running?

1.1.26+0a37423ba

What platform is your computer?

Darwin 23.6.0 arm64 arm

What steps can reproduce the bug?

I created a reporduction repo with reporduction steps: https://github.com/exKAZUu/bun-supertokens-issue

What is the expected behavior?

No errors occur same with node main.mjs (Node.js v20.17.0) on https://github.com/exKAZUu/bun-supertokens-issue.

What do you see instead?

bun main.mjs (Bun v1.1.26) on https://github.com/exKAZUu/bun-supertokens-issue shows the following error:

JsonWebTokenError: error in secret or public key callback: The JWKS endpoint did not contain any signing keys

Additional information

The above code uses jsonwebtoken, jwks-rsa, and supertokens-node, but I believe the combination of jsonwebtoken and Bun v1.1.26 causes the above error. I suspect that Bun's JSON parser is broken.

@exKAZUu exKAZUu added bug Something isn't working needs triage labels Sep 2, 2024
@exKAZUu exKAZUu changed the title Bun v1.1.26 seems not to support JsonWebToken (jsonwebtoken package) Bun v1.1.26 seems not to support JsonWebToken (jsonwebtoken package) (and supertokens-node package?) Sep 2, 2024
@exKAZUu exKAZUu changed the title Bun v1.1.26 seems not to support JsonWebToken (jsonwebtoken package) (and supertokens-node package?) Bun v1.1.26 seems not to support JsonWebToken (jsonwebtoken package) (with supertokens-node package?) Sep 2, 2024
@exKAZUu exKAZUu changed the title Bun v1.1.26 seems not to support JsonWebToken (jsonwebtoken package) (with supertokens-node package?) Bun v1.1.26 seems not to support JsonWebToken (jsonwebtoken package) Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant