This is a simple Flask application that demonstrates user authentication and authorization using JWT (JSON Web Tokens) and MongoDB for storing user information securely.
- User registration with password hashing using bcrypt.
- User login with JWT token generation.
- Token-based authentication for accessing protected routes.
- MongoDB integration for storing user data.
- Clone the repository:
https://github.com/nihaanth/jwt_login_python.git
- Install the required dependencies:
pip install -r requirements.txt
- Start the Flask server:
python app.py
- Access the application in your web browser:
- Flask
- PyMongo
- JWT
- Bcrypt
- database - MangoDB