/koa-next-cookies-session

🔑 KoaJS and NextJS session management with httpOnly cookies

Primary LanguageTypeScript

KoaJS and NextJS session management

A session manager by httpOnly cookies using KoaJS and NextJS.

How 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