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) <noreply@anthropic.com>
This commit is contained in:
2026-03-18 22:24:26 +00:00
parent f89d591fa9
commit 6ef39d212c
2 changed files with 8 additions and 0 deletions

View File

@@ -15,6 +15,11 @@ SQLITE_PATH = os.path.join(
"vehicle_database", "vehicle_database.db" "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 # Application identity
APP_NAME = "NEXUS AUTOPARTS" APP_NAME = "NEXUS AUTOPARTS"
APP_SLOGAN = "Tu conexión directa con las partes que necesitas" APP_SLOGAN = "Tu conexión directa con las partes que necesitas"

View File

@@ -5,3 +5,6 @@ lxml>=4.9.0
sqlalchemy>=2.0 sqlalchemy>=2.0
psycopg2-binary>=2.9 psycopg2-binary>=2.9
flask-sqlalchemy>=3.1 flask-sqlalchemy>=3.1
PyJWT>=2.8
bcrypt>=4.0
openpyxl>=3.1