hoangvvo / next-session

Simple promise-based session middleware for Next.js, micro, Express, and more
https://www.npmjs.com/package/next-session
MIT License
349 stars 23 forks source link

Please add export for isNew in new release. #364

Open AcidBurnHen opened 2 years ago

AcidBurnHen commented 2 years ago

Due to my custom needs in building a backend for my application I have extended the package.json to export isNew from symbol. So that I can use a validation check if the session is new and easily import it with import { isNew } from "next-session/lib/symbol"; . I am writing here as a suggestion to add this to the official release if possible as I think that isNew, isTouched and isDestroyed can give us more freedom to write some custom functionalities.