Packages

@cloudflare/workers-auth

0.18.6 · 20 Nov 2026MIT OR Apache-2.0565.1k / weekRepositoryHomepagenpmAtom feed

Your version

0.17.0

9 Nov 2026Where it was published

0.18.6 is the newest release of 0.17.x.

In short

1 breaking3 new2 internal

  • Breaking

    Stop persisting account selections made by cf and the Cloudflare Vite and Vitest plugins

Release note

Minor Changes

  • Stop persisting account selections made by cf and the Cloudflare Vite and Vitest plugins

    Profiles 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, cf and the Vite and Vitest plugins reuse the selection while running but ask again the next time they start. Configure accountId in cloudflare.config.ts or set the CLOUDFLARE_ACCOUNT_ID environment variable to avoid repeated prompts.

    Wrangler's existing persistent account selection remains unchanged.

  • Support CLOUDFLARE_AUTH_PROFILE for shared authentication profile selection

    Cloudflare 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. The cf-wrangler development 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-wrangler keeps 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.