This repository contains the code implementation for an authentication service in JavaScript.
The authentication service is designed to handle user authentication and authorization for a web application. It provides secure user registration, login, and logout functionalities.
- 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.
- Clone the repository:
git clone https://github.com/Igomigo/Authentication_service.git
- Navigate to the project directory:
cd authentication-service
- Install dependencies:
npm install
- Start the authentication service:
npm start
ornpm run devstart
- Access the service endpoints using a web browser or API client.
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.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.