Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/deepak356575/auths

Authentication and Authorization
https://github.com/deepak356575/auths

bycrypt cookieparser dotenv expressjs javascript mongodb mongoose nodejs postman

Last synced: 8 days ago
JSON representation

Authentication and Authorization

Awesome Lists containing this project

README

        

# Authentication API

API built with Node.js, Express, and MongoDB that handles user authentication with JWT tokens.

## Features

- User registration and authentication
- JWT-based authentication
- Protected routes
- Secure password hashing
- Cookie-based token storage
- Error handling
- Input validation
- MongoDB database integration

## Tech Stack

- **Node.js** - Runtime environment
- **Express.js** - Web framework
- **MongoDB** - Database
- **Mongoose** - MongoDB object modeling
- **JWT** - JSON Web Tokens for authentication
- **bcryptjs** - Password hashing
- **cookie-parser** - Cookie handling
- **dotenv** - Environment variable management

## API Endpoints

//User Registration
- /api/auth/register

//User Login
- /api/auth/login

//User logout
- /api/auth/logout

//Get profile information
- /api/auth/profile

Postman Api Documentation --- https://documenter.getpostman.com/view/39963289/2sAYHxoPdP