Reference
Configuration
Every constructor argument is keyword-only and optional.
| Option | Env fallback | Default | Purpose |
|---|---|---|---|
app_id | Enforce the token’s project_id; sent as X-App-Id | ||
verification_key | DECANE_VERIFICATION_KEY | JWKS | ES256 SPKI PEM for offline verification |
api_key | DECANE_API_KEY | dck_live_…, for sign-in | |
project_secret | DECANE_PROJECT_SECRET | dck_sk_…, for by-user-id calls and creation | |
api_base | DECANE_API_BASE | https://backend.decane.app | Backend base URL |
jwks_url | {api_base}/.well-known/jwks.json | JWKS location; ignored with a key | |
http_client | its own httpx client | Your httpx.Client or httpx.AsyncClient, used for every request including the JWKS fetch | |
timeout | 15.0 | Seconds per request for the client-owned httpx client |
An empty or whitespace-only environment value counts as unset, so a deploy template that writes DECANE_API_BASE= cannot break the client. The resolved base URL is readable as decane.api_base.