Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Express.js handler #9

Closed
vvo opened this issue Mar 9, 2020 · 4 comments
Closed

Express.js handler #9

vvo opened this issue Mar 9, 2020 · 4 comments

Comments

@vvo
Copy link
Owner

vvo commented Mar 9, 2020

Just like https://github.com/hoangvvo/next-session#-session-

@vvo
Copy link
Owner Author

vvo commented Apr 27, 2020

@Kerumen Would you like to try to tackle this or would you prefer me to implement it (might take some time :D)

@Kerumen
Copy link
Contributor

Kerumen commented Apr 28, 2020

@vvo I don't have the time right now, but I could try in the future. Don't hesitate to go ahead!

vvo added a commit that referenced this issue May 1, 2020
…uired

New features:
- an Express/Connect middleware: import { ironSession } from "next-iron-session"
  app.use(ironSession(options))
  or router.get("/", ironSession(options), (req, res, next) => {});
- import { applySession } from "next-iron-session":
  await applySession(req, res, options);

Examples:
- moved to examples/ folder
- added an Express example

BREAKING CHANGE:
- you need to import withIronSession as a named export:
before: import withIronSession from "next-iron-session"
after: import { withIronSession } from "next-iron-session"
- cookieName option is now mandatory (#54)

fixes #54
fixes #9
fixes #41
This was referenced May 1, 2020
@vvo
Copy link
Owner Author

vvo commented May 1, 2020

🎉 This issue has been resolved in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@vvo
Copy link
Owner Author

vvo commented May 1, 2020

🎉 This issue has been resolved in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@vvo vvo added the released label May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants