INNER CODE UNIT · Python

_auth

bunkeriot/BunkerM · backend/app/agent-api/main.py:178

def _auth(x_api_key: str):
    if x_api_key != API_KEY:
        raise HTTPException(status_code=401, detail="Unauthorized")


def _require_activation():
    if not _activated:
        raise HTTPException(
            status_code=403,
            detail="App not activated. Visit bunkerai.dev to get your free Community key.",
        )


# ─── Activation endpoints ─────────────────────────────────────────────────────

@app.get("/activation-status")
async def activation_status(x_api_key: str = Header(...)):
    _auth(x_api_key)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…