Skip to content

An authentication microservice πŸ”, built with Express! πŸš€

Notifications You must be signed in to change notification settings

Shravan-Chaudhary/auth-service-express

Repository files navigation

Authentication Microservice πŸ”

This is an authentication microservice offering advanced, multi-tenant authentication capabilities, built with Express and TypeScript.

Tech Stack

Features to Implement

  • Persist User: Store user data in a database using TypeORM.
  • Authentication: Implement token-based authentication using JSON Web Tokens.
  • Access and Refresh Tokens: Implement a system for issuing and refreshing access tokens.
  • Validation: Use Express Validator to validate user input.
  • Tests: Write unit and integration tests using Jest.
  • Docker: Containerize the service using Docker for easy deployment and scaling.
  • Middleware: Implement custom middleware for handling requests and responses.
  • Refresh Token Rotation: Implement a secure refresh token rotation strategy to enhance security.
  • Multi-Tenancy: Support for multi-tenancy to allow the service to be used by multiple clients.
  • GitHub Actions: Set up CI/CD pipelines using GitHub Actions.
  • Code Analysis: Use tools like ESLint and Prettier for code formatting and analysis.

Getting Started

To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

Clone this repository

$ git clone https://github.com/yourusername/your-repo-name.git

Go into the repository

$ cd your-repo-name

Install dependencies

$ npm install

Run the app

$ npm start

Contributing

Contributions are welcome! Please read the contributing guidelines before getting started.

License

This project is licensed under the terms of the MIT license.