Luca Zoppetti

Results 14 comments of Luca Zoppetti

> Can you provide some context on your use-case for iron-session in middlewares? I was thinking of using it for authentication. With Vercel's edge functions, this would be an optimal...

Unfortunately, I have not been able to find a solution with `iron-session`, but I tried some workarounds with [jose](https://github.com/panva/jose) and [@tsndr/cloudflare-worker-jwt](https://github.com/tsndr/cloudflare-worker-jwt). These libraries are made to work in a strict-runtime...

The next step might be to add a function to `iron-session` that is compatible with middlewares, what do you think @vvo? I would be available to help on this.

> Can you explain a bit more what would the changes include to handle decrypting iron-session tokens in middleware? Yes sure @vvo. I tried with [@tsndr/cloudflare-worker-jwt](https://github.com/tsndr/cloudflare-worker-jwt) and it's quite simple....

@vvo wow! This is very good news. Let's hope someone at Next will reach out to you. Feel free to keep us updated if anything changes!

> Update: you can solve this right now without any changes in Next.js. You only need Next.js 12.0.4 (current version). Thank you!

@mehrad-rafigh any update on this? Need any help in developing the feature?

@mehrad-rafigh yes, I can take a look at it!

@danielquintero sadly, I've not had the time to work on this :(

Hey there @bareynol! Is there any way we can get involved with the development of the new version? Do you need any help?