/express-authentication

Simple authentication REST API using Basic auth and JWT

Primary LanguageTypeScript

Prerequisites

  • node
  • npm
  • typescript

Install

  • npm install

  • npm run build

Run

npm start

Application is running on port 3000 or on port specified in PORT env variable.

Logging

Using debug module, logging as express-authentication. Set DEBUG env variable to see logs - for example as express-authentication or express-authentication*. Mode at https://www.npmjs.com/package/debug

Test

npm test