Auth Server API is a versatile RESTful API designed to streamline user management, authentication, and more for web and mobile applications. Built on Node.js, Express, and MongoDB, this API offers robust features to ensure a secure and scalable user experience.
- User Authentication: Secure user authentication and authorization with access and refresh tokens.
- Social Logins: Effortlessly integrate with Google, Facebook, and GitHub for user sign-ups and logins.
- Password Management: Enable password reset and password change functionality for users.
- User Profiles: Easily manage user profiles with customizable information.
- Token-Based Authentication: Utilize JSON Web Tokens (JWT) for user authentication.
- API Documentation: Comprehensive Swagger documentation for seamless testing and integration.
To kickstart your journey with My Awesome API, follow these steps:
-
Clone the Repository:
git clone git@github.com:anarsafar/auth-server.git
-
Install Dependencies:
npm i
-
Configure Environment Variables: Set up environment variables and API configurations.
-
Start the Server:
npm start
- /signup: Create new user accounts.
- /login: Authenticate and log in users.
- /logout: Log out users and invalidate tokens.
- /google, /facebook, /github: Implement social login and sign-up.
- /profile: Manage user profiles.
- /change-password: Allow users to update their passwords.
- /reset-password: Request password resets.
- /confirm-user: Confirm user registrations.
- /refresh-token: Generate new access token when expires.
For comprehensive API documentation and reference, please visit our Swagger Documentation.