It's a Express authentication markdown that will help you to understand and grasp all the underlying functionality for API Authentication and Authorization with JWT which include:
- Authentication Routes
- Middleware
- Controllers
- Models
- Error Handling Classes
- Form Requests
- Response Resources
- Mailers
- Events
User has the following features provided as Web and API
- Routing
- Email & Password Authentication
- Login, Register, Update Profile
- Forget Password functionality
- Email Verification functionality
- Social Login with google and facebook login
- Protecting some routes against un verified emails
- Protecting routes against admin sessions
- Protecting some routes against guests
- File Upload
First clone this repository, install the dependencies, and setup your .env file.
git clone https://github.com/samialateya/Express-Auth-Starter
npm install
cp .env.example .env
- Find the API Requests Samples in ./requests.rest file
PostgreSQL is the only supported database for this project.
find the SQL dump on ./database/postgres.sql
Thank you for considering contributing to Express AuthStarter. Feel free to fork this repo and submit a pull request with your updates
Please open an issue on Github if you discover a vulnerability or you face an error with this repo. and feel free to contact me at samialateya@hotmail.com