/node-auth-typeorm

Auth Server with Node/Express/TypeORM

Primary LanguageTypeScriptMIT LicenseMIT

Node Auth Server

Built with Express.js / TypeORM / MySQL

This project built for simple demonstration of session management and JWT authorization.

Live Preview(Client) ->

Live Preview(Server) ->

  • Routes
    • Auth
      • login
      • logout
      • register
      • check Session Check
      • browser Browser Auth
    • Jwt
      • login
      • logout
      • register
      • check JWT Check
      • browser Browser Auth

How to install

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