Built with Express.js / TypeORM / MySQL
This project built for simple demonstration of session management and JWT authorization.
- Routes
- Auth
- login
- logout
- register
- check Session Check
- browser Browser Auth
- Jwt
- login
- logout
- register
- check JWT Check
- browser Browser Auth
- Auth
To start the server you need;
PORT=<9000>
DB_URL=<mongo_db_url>
MYSQL_DB_URL=<mysql_db_url>
JWT_TOKEN_SECRET=<you can use crypto>
JWT_REFRESH_SECRET=<you can use crypto>
After successful installation:
npm install
npm start
or with pnpm
pnpm install
pnpm start
movwf - 2021