Code Monkey home page Code Monkey logo

authbridge's Introduction

AuthBridge

Description

AuthBridge is a versatile authentication solution designed to simplify the user registration, login, and management process for applications. It supports traditional app-based authentication methods, Google sign-in, OTP verification, and user profile updates. Built with scalability and security in mind, AuthBridge aims to streamline authentication workflows for developers and provide a seamless experience for users.

Key Features

  • User Registration and Login: Easy-to-use API endpoints for user registration and login, supporting both standard and Google authentication methods.

  • OTP Verification: Secure one-time password verification system for enhanced security during user registration and authentication processes.

  • User Management: Facilitates the retrieval and updating of user information, ensuring flexibility in managing user data.

  • Security and Authentication: Implements robust security measures and authentication protocols to safeguard user data and system access.

  • Swagger Documentation: The API endpoints in AuthBridge are documented using Swagger, providing a clear and interactive interface for developers to explore and understand the available endpoints, request/response formats, and authentication requirements.

  • Dynamic Database Support: AuthBridge can now dynamically connect to different databases based on application context, allowing for seamless integration across multiple applications with distinct databases.

Dynamic Database Configuration

AuthBridge supports dynamic database connections, enabling it to serve multiple applications with separate databases using the same backend. This feature allows for a flexible and scalable authentication system that can adapt to various application requirements.

Configuration Steps:

  1. Define Database Configurations: Set up environment variables for each application's MongoDB URI, using a clear naming convention. For example, ECOMMERCE_APP_MONGO_URI for your eCommerce app and SOCIAL_MEDIA_APP_MONGO_URI for your social media app.

  2. Specify the Application Context: When launching AuthBridge, specify the target application using the APP_NAME environment variable. This determines which database configuration to use.

Example:

To start AuthBridge for the eCommerce application, write in .env :

$ APP_NAME=ecommerceApp

then :

$ npm run start

Installation

To set up AuthBridge locally, follow these steps:

$ npm install
## Running the app

```bash
# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Stay in touch

  • Portfolio: portfolio

  • LinkedIn: linkedin

authbridge's People

Contributors

nayefserag avatar nayefserag1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.