https://github.com/igomigo/authentication_service
This project is a comprehensive authentication service built using Node.js and MongoDB. It provides a secure and efficient system for managing user authentication with essential functionalities such as user registration, login, logout, route protection with middleware, and session management from scratch.
https://github.com/igomigo/authentication_service
backend-api expressjs kue mongodb mongoose nodejs redis uuidv4
Last synced: 3 months ago
JSON representation
This project is a comprehensive authentication service built using Node.js and MongoDB. It provides a secure and efficient system for managing user authentication with essential functionalities such as user registration, login, logout, route protection with middleware, and session management from scratch.
- Host: GitHub
- URL: https://github.com/igomigo/authentication_service
- Owner: Igomigo
- Created: 2024-05-24T11:33:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-25T19:17:48.000Z (11 months ago)
- Last Synced: 2025-01-21T23:16:41.781Z (4 months ago)
- Topics: backend-api, expressjs, kue, mongodb, mongoose, nodejs, redis, uuidv4
- Language: JavaScript
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Authentication Service
This repository contains the code implementation for an authentication service in JavaScript.
## Overview
The authentication service is designed to handle user authentication and authorization for a web application. It provides secure user registration, login, and logout functionalities.
## Features
- User registration: Allows users to create an account by providing their email and password.
- User login: Allows registered users to log in using their credentials.
- User logout: Allows logged-in users to log out of their account.
- Password encryption: Ensures that user passwords are securely stored using encryption algorithms.
- Session management: Manages user sessions to maintain authentication state.## Installation
1. Clone the repository: `git clone https://github.com/Igomigo/Authentication_service.git`
2. Navigate to the project directory: `cd authentication-service`
3. Install dependencies: `npm install`## Usage
1. Start the authentication service: `npm start` or `npm run devstart`
2. Access the service endpoints using a web browser or API client.## API Endpoints
- `POST auth/register`: Creates a new user account.
- `POST auth/login`: Logs in a user and returns an authentication token.
- `POST auth/logout`: Logs out the currently logged-in user.
- `GET user/account`: Returns the user account details.## Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
## License
This project is licensed under the [MIT License](LICENSE).