Skip to content

Repository files navigation

User Authentication API

This is a Node.js-based User Authentication API using Express and MongoDB. It includes user registration, login, and password reset functionality via email.

Features

  • User Registration: Users can register with a name, email, and password.
  • Login: Registered users can log in with email and password.
  • Forgot Password: Users can request a password reset email.
  • Reset Password: Allows users to reset their password via a link sent to their email.
  • JWT Authentication: Provides a JWT token upon successful login for session management.

Tech Stack

  • Node.js: Server runtime environment
  • Express: Web framework
  • MongoDB: Database for storing user information
  • Mongoose: ODM to interact with MongoDB
  • JWT: Token-based authentication
  • Nodemailer: For sending password reset emails
  • BCrypt: Password hashing

Installation

  1. Clone the repository

    git clone https://github.com/Inno-cent/User-authentication-API
    
  2. Npm install

    npm install
    
  3. Set up environment varialbes

  4. Npm run dev

This README outlines the functionality of your User Authentication API, installation instructions, and API details, making it easier for others to understand and contribute to the project.

About

this is a user authentication REST API built using express, mongodb and jwt

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages