debug: add module load and function entry logging
All checks were successful
Deploy Development / deploy (push) Successful in 49s
Build Test / pytest-backend (push) Successful in 4s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 16s

This commit is contained in:
Lars 2026-04-18 08:32:31 +02:00
parent 11fac3d123
commit ce5b96f373

View File

@ -13,6 +13,8 @@ import bcrypt
from db import get_db, get_cursor
print("[AUTH.PY] Module loaded - require_auth_flexible will be defined")
def hash_pin(pin: str) -> str:
"""Hash password with bcrypt. Falls back gracefully from legacy SHA256."""
@ -77,6 +79,7 @@ def require_auth(x_auth_token: Optional[str] = Header(default=None)):
def require_auth_flexible(x_auth_token: Optional[str] = Header(default=None), ssetoken: Optional[str] = Query(default=None)):
print("[AUTH_FLEX] FUNCTION CALLED!") # FIRST LINE - should always print
"""
FastAPI dependency - auth via header OR query parameter.