Reference
Configuration
Every builder setter is optional. Environment variables are read in build().
| Setter | 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; trailing slashes stripped |
jwks_url | {api_base}/.well-known/jwks.json | JWKS location; ignored with a key | |
http_client | its own reqwest::Client | Your client, used for every request including the JWKS fetch | |
timeout | 15 s | Per-request timeout for the built-in client |
An empty or whitespace-only environment value counts as unset. The resolved base URL is readable as decane.api_base().