A Django and React project providing secure authentication using JWT and HTTP-only cookies.
This project overrides the default JWT authentication with a custom authenticate.py file to enhance security.
- About
- Features
- Installation
- Backend Setup
- Frontend Setup
- Usage
- Contributing
secureAuth is a web application built with:
- Django (backend)
- React + Vite (frontend)
It implements a secure authentication system using JSON Web Tokens (JWT) stored in HTTP-only cookies, ensuring enhanced session security.
Repository: https://github.com/Tijo-11/secureAuth
- Custom JWT authentication via HTTP-only cookies
- Django backend with RESTful API
- React + Vite frontend for a fast UI
- Secure session management
- Python 3.8+ (backend)
- Node.js 16+ (frontend)
- Git
-
Clone the repository:
git clone https://github.com/Tijo-11/secureAuth.git -
Navigate to the backend directory:
cd secureAuth/backend -
Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate (On Windows: venv\Scripts\activate) -
Install dependencies:
pip install -r requirements.txt -
Run the server:
python manage.py runserver
-
Navigate to the frontend directory:
cd secureAuth/frontend -
Install dependencies:
npm install -
Start the development server:
npm run dev
- Backend API: http://localhost:8000
- Frontend (via Vite): http://localhost:5173
This application supports secure login and registration using JWT stored in HTTP-only cookies.
We welcome contributions!
-
Fork the repository
-
Create a new branch
git checkout -b feature/your-feature -
Make your changes and commit
git commit -m 'Add your feature' -
Push to GitHub
git push origin feature/your-feature -
Open a Pull Request
This project is licensed under the MIT License. See the LICENSE file for details.