@cloudflare/workers-auth
0.18.6 · 20 Nov 2026MIT OR Apache-2.0565.1k / weekRepositoryHomepagenpmAtom feed
0.18.6 is the newest release of 0.17.x.
In short
1 breaking3 new2 internal
- Breaking
Stop persisting account selections made by
cfand the Cloudflare Vite and Vitest plugins
Release note
Minor Changes
Stop persisting account selections made by
cfand the Cloudflare Vite and Vitest pluginsProfiles continue to select credentials rather than accounts. If the active credentials can access one account, it is selected automatically. If they can access multiple accounts,
cfand the Vite and Vitest plugins reuse the selection while running but ask again the next time they start. ConfigureaccountIdincloudflare.config.tsor set theCLOUDFLARE_ACCOUNT_IDenvironment variable to avoid repeated prompts.Wrangler's existing persistent account selection remains unchanged.
Support
CLOUDFLARE_AUTH_PROFILEfor shared authentication profile selectionCloudflare tooling can pass a selected profile to child processes through
CLOUDFLARE_AUTH_PROFILE. Explicit profile arguments take precedence over the variable, followed by directory bindings and the default profile. Thecf-wranglerdevelopment delegate also initializes cf authentication so it reads the selected cf credentials.Experimental cf development delegates inherit the selected profile without additional command-line flags. Vite refreshes remote authentication when the resolved profile changes, and
cf-wranglerkeeps its authentication scoped to the delegate invocation.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.