Skip to main content

Module auth

Module auth 

Source
Expand description

Auth - Cloudflare account ID + API token → Workers AI endpoint resolution.

Structs§

AccountCredentials
Resolved Cloudflare account credentials.
AuthProvider
Workers AI auth-provider endpoints for one account.

Constants§

ACCOUNT_ENV
Env var holding the (non-secret) Cloudflare account ID.
API_BASE
Base API host for Cloudflare client v4 endpoints.
TOKEN_ENV
Env var holding the Cloudflare API token (cfut_… / cfwt_…).