Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/shadmanshakib/shakib-auth

Authentication build with Nestjs
https://github.com/shadmanshakib/shakib-auth

api authentication authorization backend jwt mit-license mvp nestjs saas typescript

Last synced: 6 days ago
JSON representation

Authentication build with Nestjs

Awesome Lists containing this project

README

        

# ShakibAuth

## Support

- [x] Authentication
- [x] Authorization
- [x] User Management
- [x] Role-Based Access Control
- [x] Password Reset
- [x] Email Verification
- [x] Two-Factor Authentication
- [x] Social Login (Google, Facebook, etc.)
- [x] API Documentation

## Project Overview

This project is an authentication service built using NestJS and MongoDB. It provides secure authentication and authorization features for applications.

## Installation Instructions

1. Clone the repository:
```bash
git clone
```
2. Navigate to the project directory:
```bash
cd
```
3. Install dependencies:
```bash
npm install
```
4. Set up environment variables by creating a `.env` file based on the `.env.example` file.

## Usage

To start the application, run:

```bash
npm run start
```

## API Documentation

- **POST /auth/login**: Authenticate a user.
- **POST /auth/register**: Register a new user.
- **GET /auth/profile**: Get the authenticated user's profile.

## Configuration

Ensure the following environment variables are set in your `.env` file:

- `MONGODB_URI`: The connection string for your MongoDB database.
- `JWT_SECRET`: The secret key for signing JWT tokens.

## Give a star

If you like this project, please give it a star.

## License

This project is licensed under the MIT License.