15 lines
561 B
Python
15 lines
561 B
Python
"""Shared FastAPI dependencies.
|
|
|
|
``get_current_user`` and ``oauth2_scheme`` live in ``app.api.middleware.auth``
|
|
(the canonical location per Step 9). This module re-exports them so that all
|
|
existing route imports (``from app.api.deps import get_current_user``) continue
|
|
to work without modification.
|
|
|
|
Step 12 will update ``get_current_user`` to fetch the live tier from PostgreSQL
|
|
instead of reading it from the JWT payload.
|
|
"""
|
|
|
|
from app.api.middleware.auth import get_current_user, oauth2_scheme # noqa: F401
|
|
|
|
__all__ = ["get_current_user", "oauth2_scheme"]
|