π AuthForge API is a cutting-edge authentication service designed to build and reinforce secure access mechanisms for applications and digital platforms.
- User Registration: Securely register new users.
- User Login: Authenticate users and manage sessions.
- Password Recovery: Support for password reset workflows.
- Session Management: Handle user logins and logouts effectively.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Before you begin, ensure you have the following installed:
- Node.js (Recommended version: 14.x or higher)
- npm (Node Package Manager)
- Git
- Clone the repository:
git clone https://github.com/the-berufegoru/auth-forge.git
cd auth-forge
- Install dependencies:
npm i
3 Set up environment variables:
Create a .env file in the project root and add the necessary configuration values:
# DATABASE CONFIG
MYSQL_USERNAME="username"
MYSQL_PASSWORD="database"
MYSQL_DATABASE="auth-forge"
MYSQL_HOST="127.0.0.1"
# LOGGER CONFIG
LOGTAIL_ACCESS_TOKEN="your-logtail-access-token"
4 Start the development server:
npm start
- POST /login: Authenticate a user.
- POST /register: Register a new user.
- POST /forgot-password: Initiate a password recovery process.
- POST /reset-password: Reset the user's password.
- POST /logout: Log out a user.
We welcome contributions to the AuthForge API! Here's how you can help:
- Fork the repository on GitHub.
- Clone the project to your own machine.
- Commit changes to your own branch.
- Push your work back up to your fork.
- Submit a Pull request so that we can review your changes.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
This project is licensed under the MIT License - see the LICENSE.md file for details.