🔑
API key auth, done for you
Customers create keys on your branded portal. The SDK authenticates every request from a locally cached snapshot — MicroAuth never sees your API traffic.
API keys, rate limits and metered billing for your API — enforced by an SDK inside your service, so your traffic never touches a proxy.
from fastapi import FastAPI, Security
from microauth_fastapi import MicroAuth, Customer
app = FastAPI()
auth = MicroAuth(app) # auth, limits & billing — two lines
@app.get("/forecast")
async def forecast(customer: Customer = Security(auth)):
return {"hello": customer.id}pip install microauth-fastapi