DecaneDocs
ReferenceConfiguration
Reference

Configuration

All of DecaneClientOptions. Every option is optional; env-var fallbacks mean a typical backend passes nothing but appId in code.

OptionEnv fallbackDefaultPurpose
appId——Reject tokens whose project_id differs. Omit to accept any project (single-tenant backends).
verificationKeyDECANE_VERIFICATION_KEY— (falls back to JWKS)ES256 SPKI PEM public key; verify offline with no JWKS fetch. \n escapes normalised.
apiKeyDECANE_API_KEY—dck_live_… developer key, sent as X-API-Key. Required only for sign-in methods; keep it server-side.
apiBaseDECANE_API_BASEhttps://backend.decane.appDecane backend base URL, used for the JWKS default and /share/addresses.
jwksUrl—{apiBase}/.well-known/jwks.jsonFull JWKS URL override. Ignored when a verification key is set.
fetch—global fetchInjected fetch for REST calls — addresses and sign-in (tests, Node < 18). JWKS retrieval always uses the runtime’s global fetch, called inside jose.