General-purpose HTTP-based authentication and authorization server. Built with Node.js and Nest.js.
Features
- User registration and verification via email.
- Basic authentication using email and password.
- Authorization using JSON Web Tokens.
- Delete not verified users after the verification token expires.
- Reset password via email.
- Change email address via email.
- API documentation available.
-
Configure the
.env
file. -
Install
Node 16
. -
Install packages.
cd auth-server
npm install
Run the server for development, debug or production.
cd auth-server
npm run start:dev
npm run start:debug
npm run start:prod
Build the project, compiling it to JavaScript.
cd auth-server
npm run build
Once the dist
folder is created start the application.
node dist/main.js