Nico Plyley

Results 23 comments of Nico Plyley

I responded in the discussion as well with links. But I think it's important to note I found two instances of this error happening outside Hono as well

@yusukebe I believe this is not possible, but it's not a limitation of TypeScript but the intended way of doing it. My understanding of is it that when calling a...

If you would like to do that in the meantime, you can use `c.set() / c.get()` and pass the updated data to your route that way instead

Hi @yknevenky You need to store your Key without `\n` inside your .env file. If you format it like this you should have no issues ```css JWT_SECRET="-----BEGIN PRIVATE KEY----- MHcCAQEEIH9XDGr9tm4CkJKspu2C3MJnFIrO7APXgEIuEfCJLShYoAoGCCqGSM49...

I tested in Bun and I had no issues with it, did you try exactly what I pasted?

My apologies @yknevenky you are correct, I had a different runtime running in the dev command. You are correct this is not working on Bun

So in Bun I am having an issue when using your RSA Key. When I use this one: ```ts JWT_SECRET="-----BEGIN PRIVATE KEY----- MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgevZzL1gdAFr88hb2 OF/2NxApJCzGCEDdfSp6VQO30hyhRANCAAQRWz+jn65BtOMvdyHKcvjBeBSDZH2r 1RTwjmYSi9R/zpBnuQ4EiMnCqfMPWiZqB4QdbAd0E7oH50VpuZ1P087G -----END PRIVATE KEY-----" ``` There...

Ignore my bad terminology. I use ssh keys on the daily and call everything an RSA. The key I gave was generate with a p-256 curve. I pulled it off...

I have just tried generating my own key and have had no issues. Here is how I did it ```bash openssl ecparam -genkey -name prime256v1 | openssl pkcs8 -topk8 -nocrypt...

I have had issues with jsonwebtoken package on the past on Bun. I would consider Jose if you want to use an alternative