From 6ef39d212ca1e2a624360dafed8f577e6127c49b Mon Sep 17 00:00:00 2001 From: consultoria-as Date: Wed, 18 Mar 2026 22:24:26 +0000 Subject: [PATCH] feat: add JWT auth and inventory dependencies Add PyJWT, bcrypt, openpyxl to requirements. Add JWT_SECRET, JWT_ACCESS_EXPIRES, JWT_REFRESH_EXPIRES to config. Co-Authored-By: Claude Opus 4.6 (1M context) --- config.py | 5 +++++ requirements.txt | 3 +++ 2 files changed, 8 insertions(+) diff --git a/config.py b/config.py index 498d847..4b0f627 100644 --- a/config.py +++ b/config.py @@ -15,6 +15,11 @@ SQLITE_PATH = os.path.join( "vehicle_database", "vehicle_database.db" ) +# JWT Authentication +JWT_SECRET = os.environ.get("JWT_SECRET", "nexus-saas-secret-change-in-prod-2026") +JWT_ACCESS_EXPIRES = 900 # 15 minutes +JWT_REFRESH_EXPIRES = 2592000 # 30 days + # Application identity APP_NAME = "NEXUS AUTOPARTS" APP_SLOGAN = "Tu conexión directa con las partes que necesitas" diff --git a/requirements.txt b/requirements.txt index 68af4ea..00c62de 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,3 +5,6 @@ lxml>=4.9.0 sqlalchemy>=2.0 psycopg2-binary>=2.9 flask-sqlalchemy>=3.1 +PyJWT>=2.8 +bcrypt>=4.0 +openpyxl>=3.1