KoaJS and NextJS session management
KoaJS and NextJS.
A session manager by httpOnly cookies usingHow To Use
# Clone this repository and go into
git clone https://github.com/vinibgoulart/koa-cookies-session
cd koa-cookies-session
# Install dependencies
yarn
# Run the server
yarn server
# Run the app
yarn app
API Routes
method | endpoint | protected | what it do |
---|---|---|---|
GET | / | true | access events data |
POST | /set-session | false | set session cookie |