@cloudflare/workers-auth
0.18.6 · 20 Nov 2026MIT OR Apache-2.0565.1k / weekRepositoryHomepagenpmAtom feed
65 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 0.18.x · latest line
0.18.6
20 Nov 2026- Security
Update Undici to 7.30.2 to include upstream security fixes
This patch includes six upstream security fixes covering caching, redirects, and Subresource Integrity verification. Update the shared Undici dependency and matching types together so affected packages ship the patched version.
Patch Changes
- Security
Update Undici to 7.30.2 to include upstream security fixes
This patch includes six upstream security fixes covering caching, redirects, and Subresource Integrity verification. Update the shared Undici dependency and matching types together so affected packages ship the patched version.
0.18.5
18 Nov 2026Fix
Dynamic requireerrors when importing packages from ES modulesImporting these packages in a Node.js ES module could fail with
Dynamic require of "..." is not supportedwhen a dependency loaded a Node.js built-in. These imports now work without requiring a CommonJS wrapper.
Patch Changes
Fix
Dynamic requireerrors when importing packages from ES modulesImporting these packages in a Node.js ES module could fail with
Dynamic require of "..." is not supportedwhen a dependency loaded a Node.js built-in. These imports now work without requiring a CommonJS wrapper.
0.18.4
17 Nov 2026Only updates dependencies:@cloudflare/workers-utils 0.54.2DEFAULT_COMPAT_DATE 2026-11
0.18.3
16 Nov 2026Avoid redundant OAuth refreshes after a sibling process updates credentials
Check access-token expiry and select the refresh token from the same fresh credential snapshot. When a sibling has already saved a valid access token, reuse it without another exchange or write. This prevents an unnecessary rotation that can let an older response overwrite a newer refresh token.
Patch Changes
Avoid redundant OAuth refreshes after a sibling process updates credentials
Check access-token expiry and select the refresh token from the same fresh credential snapshot. When a sibling has already saved a valid access token, reuse it without another exchange or write. This prevents an unnecessary rotation that can let an older response overwrite a newer refresh token.
0.18.1 – 0.18.22 releases that only update dependencies@cloudflare/workers-utils 0.54.0DEFAULT_COMPAT_DATE 2026-11Show each
0.18.0
10 Nov 2026Add custom Cloudflare API headers through
CLOUDFLARE_API_HEADERSSet
CLOUDFLARE_API_HEADERSto a JSON object such as{"X-Custom-Header":"value"}to add headers to Cloudflare API requests. Custom headers override existing unprotected request headers, body and transport headers are protected, and header values outside the diagnostic allowlist remain redacted regardless of log sanitization settings.
Minor Changes
Add custom Cloudflare API headers through
CLOUDFLARE_API_HEADERSSet
CLOUDFLARE_API_HEADERSto a JSON object such as{"X-Custom-Header":"value"}to add headers to Cloudflare API requests. Custom headers override existing unprotected request headers, body and transport headers are protected, and header values outside the diagnostic allowlist remain redacted regardless of log sanitization settings.
- 0.17.x
0.17.0
9 Nov 2026Stop 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.
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.
- 0.16.x
0.16.0
5 Nov 2026Correct and request the PlanetScale setup scope in new cf OAuth logins
Use the policy-compliant
hyperdrive-planetscale.setupidentifier for the PlanetScale setup scope and request it in new cf OAuth logins by default. OAuth grants remain constrained by the user's permissions, so only users with the corresponding Bach membership permission can exercise it. Existing sessions must authenticate again to receive the scope.
Minor Changes
Correct and request the PlanetScale setup scope in new cf OAuth logins
Use the policy-compliant
hyperdrive-planetscale.setupidentifier for the PlanetScale setup scope and request it in new cf OAuth logins by default. OAuth grants remain constrained by the user's permissions, so only users with the corresponding Bach membership permission can exercise it. Existing sessions must authenticate again to receive the scope.
- 0.15.x
0.15.5 – 0.15.62 releases that only update dependencies@cloudflare/workers-utils 0.51.1DEFAULT_COMPAT_DATE 2026-11Show each
0.15.4
1 Nov 2026Request the user API token management scope when logging in with cf
Include
user-api-tokens.writein cf's default OAuth scopes so users can list and manage their user API tokens, including when they have reached the token creation limit. Existing OAuth sessions need a new login to request the scope.Validate OAuth error callbacks against the pending login
All authorization callbacks, including ones without a code or error, now require the matching login state. Unrelated callbacks leave the login running so the authorization page can complete it, and control characters in provider error messages are displayed as escaped text.
Patch Changes
Request the user API token management scope when logging in with cf
Include
user-api-tokens.writein cf's default OAuth scopes so users can list and manage their user API tokens, including when they have reached the token creation limit. Existing OAuth sessions need a new login to request the scope.Validate OAuth error callbacks against the pending login
All authorization callbacks, including ones without a code or error, now require the matching login state. Unrelated callbacks leave the login running so the authorization page can complete it, and control characters in provider error messages are displayed as escaped text.
0.15.2 – 0.15.32 releases that only update dependencies@cloudflare/workers-utils 0.50.1Show each
- 0.15.329 Oct 2026@cloudflare/workers-utils 0.50.1
- 0.15.228 Oct 2026@cloudflare/workers-utils 0.50.0
0.15.1
26 Oct 2026Update Undici to 7.30.1 to prevent a malformed HTTP response from crashing development tools
The updated shared dependency rejects excessive content encodings without leaving an unhandled stream error when the server closes the connection early. This fixes GHSA-xjj6-f33q-929c and keeps the matching Undici types on the same version.
Fix the Windows keyring install when the config path contains a space
On Windows,
wrangler login --use-keyringcould not set up keyring storage when the configuration path contained a space, such as aC:\Users\John Smithprofile, so credentials fell back to the plaintext file. Keyring setup now works for those paths and credentials are stored encrypted.
Patch Changes
Update Undici to 7.30.1 to prevent a malformed HTTP response from crashing development tools
The updated shared dependency rejects excessive content encodings without leaving an unhandled stream error when the server closes the connection early. This fixes GHSA-xjj6-f33q-929c and keeps the matching Undici types on the same version.
Fix the Windows keyring install when the config path contains a space
On Windows,
wrangler login --use-keyringcould not set up keyring storage when the configuration path contained a space, such as aC:\Users\John Smithprofile, so credentials fell back to the plaintext file. Keyring setup now works for those paths and credentials are stored encrypted.
0.15.0
22 Oct 2026Use each CLI's temporary-account flag in authentication errors
Default to
--temporary-accountwhile keeping Wrangler's--temporaryspelling. Expose account-lookup authentication failure reasons so consumers can distinguish missing credentials from expired tokens without matching error messages.
Minor Changes
Use each CLI's temporary-account flag in authentication errors
Default to
--temporary-accountwhile keeping Wrangler's--temporaryspelling. Expose account-lookup authentication failure reasons so consumers can distinguish missing credentials from expired tokens without matching error messages.
- 0.14.x
0.14.1
20 Oct 2026Support Vitest 5 in shared test helpers
The optional Vitest peer ranges now accept both Vitest 4 and 5, allowing consumers to upgrade without dropping compatibility with Vitest 4.
Patch Changes
Support Vitest 5 in shared test helpers
The optional Vitest peer ranges now accept both Vitest 4 and 5, allowing consumers to upgrade without dropping compatibility with Vitest 4.
0.14.0
13 Oct 2026Allow cf consumers to explicitly request the
hyperdrive-planetscale:setupOAuth scopeThe scope remains excluded from default logins so permission to create Cloudflare-billed PlanetScale databases is requested only by commands that need it.
Use consumer-specific CLI names and commands in shared user-facing messages
Shared deployment, container, configuration, and authentication helpers can now render commands and configuration filenames for their calling CLI while preserving Wrangler-compatible defaults. This prevents
cfworkflows from presenting Wrangler-branded guidance when an equivalentcfcommand exists.Time out the OAuth token request instead of waiting indefinitely
The request that exchanges an authorization code or refresh token for an access token had no timeout, so a stalled connection (for example behind an HTTP proxy) could leave
wrangler loginhanging silently for many minutes after the browser step had succeeded. The request now gives up after 30 seconds and reports that the Cloudflare auth server could not be reached.
Minor Changes
Allow cf consumers to explicitly request the
hyperdrive-planetscale:setupOAuth scopeThe scope remains excluded from default logins so permission to create Cloudflare-billed PlanetScale databases is requested only by commands that need it.
Use consumer-specific CLI names and commands in shared user-facing messages
Shared deployment, container, configuration, and authentication helpers can now render commands and configuration filenames for their calling CLI while preserving Wrangler-compatible defaults. This prevents
cfworkflows from presenting Wrangler-branded guidance when an equivalentcfcommand exists.
Patch Changes
Time out the OAuth token request instead of waiting indefinitely
The request that exchanges an authorization code or refresh token for an access token had no timeout, so a stalled connection (for example behind an HTTP proxy) could leave
wrangler loginhanging silently for many minutes after the browser step had succeeded. The request now gives up after 30 seconds and reports that the Cloudflare auth server could not be reached.
- 0.13.x
0.13.1
8 Oct 2026Only updates a dependency:@cloudflare/workers-utils 0.47.1
0.13.0
6 Oct 2026Add a
temporaryAccountLoggeroption for temporary-account noticesAuthContext.temporaryAccountLoggerreceives the terms notice, the proof-of-work message, and the "Temporary account ready" claim details. A CLI whose commands write parseable output to stdout can route these messages to stderr. When it is not set, the messages go tologgeras before.
Minor Changes
Add a
temporaryAccountLoggeroption for temporary-account noticesAuthContext.temporaryAccountLoggerreceives the terms notice, the proof-of-work message, and the "Temporary account ready" claim details. A CLI whose commands write parseable output to stdout can route these messages to stderr. When it is not set, the messages go tologgeras before.
- 0.12.x
0.12.0
2 Oct 2026Allow cf to request the zone observability OAuth scopes
New cf OAuth logins request
zone-observability.readandzone-observability.write. Existing sessions must authenticate again to receive them.
Minor Changes
Allow cf to request the zone observability OAuth scopes
New cf OAuth logins request
zone-observability.readandzone-observability.write. Existing sessions must authenticate again to receive them.
- 0.11.x
0.11.1
1 Oct 2026Only updates a dependency:@cloudflare/workers-utils 0.45.1
0.11.0
30 Sep 2026Allow cf to request the K2 OAuth scopes
New cf OAuth logins request
k2.consume,k2.produce,k2.read, andk2.write, which are registered for the cf OAuth client. Existing sessions must authenticate again to receive them.
- 0.10.x
0.10.0
30 Sep 2026Allow cf to request the account token creation scope
New cf OAuth logins can request
account_api_tokens:create. Existing sessions must authenticate again to receive the scope.Add beta K2 producer bindings for existing streams
Configure a stream created through Wrangler, the Dashboard, or the API in
wrangler.json:{ "k2": [ { "binding": "ORDERS", "stream": "0123456789abcdef0123456789abcdef" } ] }The binding supports
env.ORDERS.send([{ content: new TextEncoder().encode("order"), headers: { event: "order.created" } }]). Batches use either allArrayBufferor allUint8Arraycontent. Check the returnedsuccessvalue, handle rejected RPC promises, and retry only when the returned error explicitly allows it. Generated environment types describe this producer contract without requiring a separate application dependency.K2 requires an enabled account. Deployment credentials need Worker deployment and K2 configuration-read access. Default Wrangler logins now request the K2 OAuth scopes; existing OAuth users should run
wrangler loginagain to grant the new permissions. Development always uses a real K2 stream and may incur usage charges; no local simulator is provided. Theremotesetting can be omitted,remote: truesuppresses the usage warning, andremote: falseis rejected. Consumption is not part of this Worker binding.Add beta K2 stream management commands
Use
wrangler k2 streams create order_events,wrangler k2 streams list,wrangler k2 streams get <stream-id>, andwrangler k2 streams delete <stream-id>to manage K2 streams. Creation enables Worker bindings but not HTTP ingestion by default, matching the dashboard. Pass--http-enabledto enable authenticated HTTP ingestion and print its endpoint. Creation prints the stream ID and a binding configuration with aYOUR_BINDING_NAMEplaceholder for the Worker's variable name, but does not edit the configuration file automatically.All four commands support
--json. Deletion requires confirmation, or--force/-yto skip it; use--force --jsonfor JSON deletion output. Creation also accepts retention, HTTP authentication, Worker-input, and CORS options; listing supports pagination and a name filter. Default Wrangler logins now requestk2.readandk2.write; existing OAuth users should runwrangler loginagain, or use a custom API token granting K2 Config Write. The account must be enabled for K2.
Minor Changes
Allow cf to request the account token creation scope
New cf OAuth logins can request
account_api_tokens:create. Existing sessions must authenticate again to receive the scope.Add beta K2 producer bindings for existing streams
Configure a stream created through Wrangler, the Dashboard, or the API in
wrangler.json:{ "k2": [ { "binding": "ORDERS", "stream": "0123456789abcdef0123456789abcdef" } ] }The binding supports
env.ORDERS.send([{ content: new TextEncoder().encode("order"), headers: { event: "order.created" } }]). Batches use either allArrayBufferor allUint8Arraycontent. Check the returnedsuccessvalue, handle rejected RPC promises, and retry only when the returned error explicitly allows it. Generated environment types describe this producer contract without requiring a separate application dependency.K2 requires an enabled account. Deployment credentials need Worker deployment and K2 configuration-read access. Default Wrangler logins now request the K2 OAuth scopes; existing OAuth users should run
wrangler loginagain to grant the new permissions. Development always uses a real K2 stream and may incur usage charges; no local simulator is provided. Theremotesetting can be omitted,remote: truesuppresses the usage warning, andremote: falseis rejected. Consumption is not part of this Worker binding.Add beta K2 stream management commands
Use
wrangler k2 streams create order_events,wrangler k2 streams list,wrangler k2 streams get <stream-id>, andwrangler k2 streams delete <stream-id>to manage K2 streams. Creation enables Worker bindings but not HTTP ingestion by default, matching the dashboard. Pass--http-enabledto enable authenticated HTTP ingestion and print its endpoint. Creation prints the stream ID and a binding configuration with aYOUR_BINDING_NAMEplaceholder for the Worker's variable name, but does not edit the configuration file automatically.All four commands support
--json. Deletion requires confirmation, or--force/-yto skip it; use--force --jsonfor JSON deletion output. Creation also accepts retention, HTTP authentication, Worker-input, and CORS options; listing supports pagination and a name filter. Default Wrangler logins now requestk2.readandk2.write; existing OAuth users should runwrangler loginagain, or use a custom API token granting K2 Config Write. The account must be enabled for K2.
- 0.9.x
0.9.5
29 Sep 2026Report an unreachable auth server instead of an expired login when refreshing an OAuth token
When the OAuth token endpoint could not be reached (for example a DNS failure or a connection timeout), the refresh failure was reported as "Your auth token has expired and could not be refreshed", with advice to run
wrangler login; in an interactive terminal Wrangler also started a new browser login. A network failure says nothing about the stored refresh token, and a new login would need the same unreachable server. Wrangler now reports that the Cloudflare auth server could not be reached, leaves the stored credentials unchanged, and does not start a login, so the next run can refresh with the same token once the network is back.
0.9.4
25 Sep 2026Keep Node.js ESM packages working when consumers rebundle them as CommonJS
Node.js-targeted ESM bundles now provide a real
requireimplementation for bundled CommonJS dependencies. This avoids downstream patches for dynamic require calls and keeps the packages usable when a consumer rebundles them to CommonJS.
Patch Changes
Keep Node.js ESM packages working when consumers rebundle them as CommonJS
Node.js-targeted ESM bundles now provide a real
requireimplementation for bundled CommonJS dependencies. This avoids downstream patches for dynamic require calls and keeps the packages usable when a consumer rebundles them to CommonJS.
0.9.3
25 Sep 2026Only updates a dependency:@cloudflare/workers-utils 0.43.0
0.9.2
24 Sep 2026Update
smol-tomlto 1.9.0 to fix slow parsing of very large TOML filesParse time for TOML config files now grows linearly with their size, instead of with its square: a 40,000-line file that took 259 ms to parse now takes 17 ms, while typical
wrangler.tomlfiles parse in the same time as before. This addresses theGHSA-r4xh-jqrq-34v2advisory against earlier versions of the parser.Some TOML syntax errors now point at the character that caused them. For example, a
wrangler.tomlcontainingINVALID "FILEis now reported asillegal character in keyat the", rather thanincomplete key-valueat the start of the line.
Patch Changes
Update
smol-tomlto 1.9.0 to fix slow parsing of very large TOML filesParse time for TOML config files now grows linearly with their size, instead of with its square: a 40,000-line file that took 259 ms to parse now takes 17 ms, while typical
wrangler.tomlfiles parse in the same time as before. This addresses theGHSA-r4xh-jqrq-34v2advisory against earlier versions of the parser.Some TOML syntax errors now point at the character that caused them. For example, a
wrangler.tomlcontainingINVALID "FILEis now reported asillegal character in keyat the", rather thanincomplete key-valueat the start of the line.
0.9.1
24 Sep 2026Only updates a dependency:@cloudflare/workers-utils 0.41.2
0.9.0
22 Sep 2026Request every grantable scope registered for the cf OAuth client on login
The cf OAuth flow now requests all 468 scopes that are both accepted for its production client and grantable by the consent service, allowing cf commands to call the corresponding APIs. Six client-registered scopes without consent mappings remain excluded so browser and device login do not fail during authorization.
Minor Changes
Request every grantable scope registered for the cf OAuth client on login
The cf OAuth flow now requests all 468 scopes that are both accepted for its production client and grantable by the consent service, allowing cf commands to call the corresponding APIs. Six client-registered scopes without consent mappings remain excluded so browser and device login do not fail during authorization.
- 0.8.x
0.8.0
22 Sep 2026Include Account Tag Write in the default CF CLI OAuth scopes
New CF CLI logins now request permission to manage account resource tags. Existing sessions must reauthenticate to receive the additional scope.
- 0.7.x
0.7.1 – 0.7.44 releases that only update dependencies@cloudflare/workers-utils 0.41.0Show each
- 0.7.421 Sep 2026@cloudflare/workers-utils 0.41.0
- 0.7.318 Sep 2026@cloudflare/workers-utils 0.40.1
- 0.7.217 Sep 2026@cloudflare/workers-utils 0.40.0
- 0.7.116 Sep 2026@cloudflare/workers-utils 0.39.1
0.7.0
15 Sep 2026- Removed
Remove the gated Web Search binding and Wrangler command
The unreleased search binding and its experimental command have been removed from Wrangler, Miniflare, and configuration APIs.
Accept all production-registered cf OAuth scopes for explicit requests
The cf scope validator now recognizes the full production OAuth registration, including newer scopes such as
dns.read. The existing default login scope request remains unchanged, so broader permissions are requested only when a caller explicitly supplies them.Support per-CLI default OAuth login flows
CLI descriptors can now make OAuth device authorization their default while preserving a per-login opt-out. The cf auth layer enables this default for both explicit login commands and implicit logins started during account resolution; Wrangler continues to use its localhost callback flow by default.
Minor Changes
Accept all production-registered cf OAuth scopes for explicit requests
The cf scope validator now recognizes the full production OAuth registration, including newer scopes such as
dns.read. The existing default login scope request remains unchanged, so broader permissions are requested only when a caller explicitly supplies them.Support per-CLI default OAuth login flows
CLI descriptors can now make OAuth device authorization their default while preserving a per-login opt-out. The cf auth layer enables this default for both explicit login commands and implicit logins started during account resolution; Wrangler continues to use its localhost callback flow by default.
- Removed
Remove the gated Web Search binding and Wrangler command
The unreleased search binding and its experimental command have been removed from Wrangler, Miniflare, and configuration APIs.
- 0.6.x
0.6.10 – 0.6.123 releases that only update dependencies@cloudflare/workers-utils 0.38.1Show each
- 0.6.1214 Sep 2026@cloudflare/workers-utils 0.38.1
- 0.6.1110 Sep 2026@cloudflare/workers-utils 0.38.0
- 0.6.108 Sep 2026@cloudflare/workers-utils 0.37.0
0.6.9
7 Sep 2026Fix
cf auth loginrequesting unsupported email read scopesThe Cloudflare OAuth server does not define
email_routing:readoremail_sending:read. ThecfCLI now requests only the registered write scopes for those products, preventing login from failing with an unknown OAuth scope error.
0.6.8
3 Sep 2026Add missing email_routing and email_sending auth scopes to CF cli
Patch Changes
Add missing email_routing and email_sending auth scopes to CF cli
0.6.7
1 Sep 2026Only updates a dependency:@cloudflare/workers-utils 0.35.0
0.6.6
25 Aug 2026Fix
wrangler login --use-keyringincorrectly reporting thatsecret-toolis missing on LinuxLibsecret's
secret-tooldoes not support--version; it prints usage and exits 2, which Wrangler previously interpreted as unavailable. Wrangler now reports it missing only when launching the executable fails.
0.6.5
20 Aug 2026Recover from a partially installed keyring backend on Windows
Choosing to keep your credentials in the OS keyring on Windows installs a native backend the first time you opt in. An install interrupted part-way through — by a dropped connection, a full disk, or an npm told to skip optional packages — could leave a broken backend behind that was nonetheless treated as working. Every login, token refresh, and credential read from then on failed with an internal error, and because the broken state was never re-examined, no amount of retrying would clear it.
A broken backend is now spotted and reinstalled automatically. If the reinstall still cannot produce a working one, you get a single explanation of how to install it by hand and fall back to the plaintext credentials file for the rest of the session, rather than sitting through a fresh install attempt on every credential access.
Fix the
--temporaryerror on commands that authenticate more than one timewrangler d1 migrations apply --remote --temporaryfailed with this error:You're already authenticated with Cloudflare, so --temporary can't be used. The failure occurred with no login and with noCLOUDFLARE_API_TOKEN. This command authenticates one time for each statement that it runs. The first authentication makes a temporary preview account. The second authentication read the token of this new account as an earlier login.Wrangler now uses again the temporary account from the same command run. Commands that authenticate more than one time now work as
wrangler deploy --temporaryworks. If real credentials are available,--temporaryis still an error.
Patch Changes
Recover from a partially installed keyring backend on Windows
Choosing to keep your credentials in the OS keyring on Windows installs a native backend the first time you opt in. An install interrupted part-way through — by a dropped connection, a full disk, or an npm told to skip optional packages — could leave a broken backend behind that was nonetheless treated as working. Every login, token refresh, and credential read from then on failed with an internal error, and because the broken state was never re-examined, no amount of retrying would clear it.
A broken backend is now spotted and reinstalled automatically. If the reinstall still cannot produce a working one, you get a single explanation of how to install it by hand and fall back to the plaintext credentials file for the rest of the session, rather than sitting through a fresh install attempt on every credential access.
Fix the
--temporaryerror on commands that authenticate more than one timewrangler d1 migrations apply --remote --temporaryfailed with this error:You're already authenticated with Cloudflare, so --temporary can't be used. The failure occurred with no login and with noCLOUDFLARE_API_TOKEN. This command authenticates one time for each statement that it runs. The first authentication makes a temporary preview account. The second authentication read the token of this new account as an earlier login.Wrangler now uses again the temporary account from the same command run. Commands that authenticate more than one time now work as
wrangler deploy --temporaryworks. If real credentials are available,--temporaryis still an error.
0.6.4
18 Aug 2026Use the current Cloudflare Access service-token credentials after environment variables change. Interactive Access cookie caching is unchanged.
Patch Changes
Use the current Cloudflare Access service-token credentials after environment variables change. Interactive Access cookie caching is unchanged.
0.6.1 – 0.6.33 releases that only update dependencies@cloudflare/workers-utils 0.33.0undici 7.29.0Show each
- 0.6.312 Aug 2026@cloudflare/workers-utils 0.33.0
- 0.6.211 Aug 2026@cloudflare/workers-utils 0.32.0
- 0.6.17 Aug 2026@cloudflare/workers-utils 0.31.2undici 7.29.0
0.6.0
5 Aug 2026Add support for OAuth 2.0 Device Authorization Grant to
wrangler loginRun
wrangler login --deviceto authenticate without a local callback server. Useful in containers, remote SSH sessions, Codespaces, and any other environment wherelocalhost:8976is unreachable from your browser.The new flow:
The verification URL is supplied by the authorization server, so it is rejected unless it is an
httpsURL on the same auth domain the device code was requested from — it is never printed or opened otherwise.--callback-hostand--callback-portcannot be combined with--device, since this flow does not start a local callback server.
Minor Changes
Add support for OAuth 2.0 Device Authorization Grant to
wrangler loginRun
wrangler login --deviceto authenticate without a local callback server. Useful in containers, remote SSH sessions, Codespaces, and any other environment wherelocalhost:8976is unreachable from your browser.The new flow:
prints the verification URL and user code to the terminal,
attempts to open the verification URL in your default browser automatically (suppressed via
--browser=false),and polls the token endpoint until you approve the request (with a 5-minute hard cap).
The verification URL is supplied by the authorization server, so it is rejected unless it is an
httpsURL on the same auth domain the device code was requested from — it is never printed or opened otherwise.--callback-hostand--callback-portcannot be combined with--device, since this flow does not start a local callback server.
- 0.5.x
0.5.6
31 Jul 2026Report a clear error for account IDs that can't be used in a Cloudflare API request
Account IDs are substituted straight into Cloudflare API URL paths, so a value containing non-ASCII characters previously failed deep inside the request layer with an opaque
Cannot convert argument to a ByteStringerror that gave no hint about which setting was at fault. Account IDs read fromCLOUDFLARE_ACCOUNT_IDand from theaccount_idconfiguration field are now validated up front, and an invalid value fails with a message naming both the offending value and where it came from.
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.