Reproduction Repo of a TypeORM module induced issue with fastify-secure-session.
Steps to reproduce:
- Configure TypeORM connection data to a dummy test DB (doesn't matter, we are not doing any DB operations here anyways)
- Start application with
npm run start
- Make a request to any endpoint of the application
- See this the error in fastify logs:
Flash plugin requires a valid session.
How it should be:
- Remove or comment out the TypeORM module import in
app.module.ts
- Start application with
npm run start
- Make a request to any endpoint of the application
- No errors reported. Session gets created:
fastify-secure-session: there is no cookie, creating an empty session