Comments (4)
So I found the cause of the error. Another app apparently created cookie under the same name, so iron could not parse it. Feel free to close!
from iron-session.
Seems to stem from iron core itself https://npmdoc.github.io/node-npmdoc-iron/build/apidoc.html
from iron-session.
Indeed this is why nowadays we recommend setting a very specific cookieName and enforcing its usage. When you have two cookies with the exact same name and the url of the website is the same then you can have issues. This happens a lot in development, https://localhost:3000 can be many apps so be sure to use a cookieName that's always different for each app.
from iron-session.
In my case, it is not because of clashing cookie names. The error is thrown when it is tampered/altered from DevTools cookie store
from iron-session.
Related Issues (20)
- NextJS 12 + Amplify = "Error: iron-session: Bad usage. Minimum usage is...." HOT 2
- I need to protect myself from XSS, CSRF or Broken authentication and session management vulnerabilities ? HOT 1
- Get slug from withIronSessionSsr HOT 1
- Jest test cases are failing throwing the error "TypeError: Cannot redefine property: session" HOT 1
- TypeError: res.getHeader is not a function HOT 2
- Package causing multiple response problem HOT 1
- v8 beta release, last tasks and discussions HOT 6
- session object empty on Apollo Server API Route
- Can i use iron-session with pages routes ? HOT 1
- Implementing iron-session with TRPC HOT 9
- Session cookie not created when static web app is sitting behind azure front door due to domain mismatch HOT 3
- Static maxAge
- v8 - Attaching session to request HOT 1
- Make properties in T for IronSession<T> optional (union with undefined)
- v6 and Next 13 pages middleware HOT 7
- Migration away from `withIronSessionApiRoute` HOT 3
- await session.save() fails to set cookie if cookies.set() is used after HOT 2
- session returned from `getIronSessionFromCookieStore` does not implement full interface HOT 1
- outdated dependency @types/cookie causes type mismatch HOT 1
- why getIronSession not work in middleware like in example (App router + client components, route handlers, and SWR) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iron-session.