iron-session
iron-session copied to clipboard
🛠 Secure, stateless, and cookie-based session library for JavaScript
Hello I try to follow exemple here : https://get-iron-session.vercel.app/app-router-client-component-route-handler-swr but when I try to protect page with middleware like the example, I got this error : "Invariant: Method expects to...
Hey there, We're using Nextjs's `cookies()` function. The session object returned from `getIronSessionFromCookieStore` does not include an implementation for `updateConfig`. Our use case for `updateConfig` is to set a maxAge...
Hi! Thank you for your work! I faced with problem in v6: save() and destroy() not working before return in nextjs middleware. And changes applying only on next tick or...
Hey there, I'm seeing a TS error when passing Nextjs's `cookies()` function to `getIronSession` ``` Argument of type 'ReadonlyRequestCookies' is not assignable to parameter of type 'CookieStore'. Types of property...
Upgrading from v6 to v8 of this package. What's the easiest way to migrate `withIronSessionApiRoute`?
Adds basic magic link demo based on a demo in a previous README version.
So I'm having issues trying to slam iron-session with TRPC. I'm using create-t3-app to start with and before v8, I just used to define (or redefine) IronSession when creating my...
In case that there is no seal/cookie, [the parsed data is an empty object](https://github.com/vvo/iron-session/blob/main/src/core.ts#L365). For this reason, it would be more accurate to make the properties of the type parameter...
Each time I update the session I want to maintain the previous value of the Max Age value in the cookie. However, using the options presented in the documentation I...
I have a nextjs website running on an azure static web app behind azure front door. When an api is called, it gathers some data and creates a session cookie...