Skip to content

deps

Dependency injection for FastAPI routes.

AuthSettings

Auth configuration loaded from environment variables.

get_current_user_id

get_current_user_id(
    credentials: HTTPAuthorizationCredentials | None = Depends(_security),
    miam_auth_token: str | None = Cookie(default=None),
    auth_service: AuthService = Depends(get_auth_service),
) -> UUID

Extract and validate the JWT from the HttpOnly cookie or Authorization header.