@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.2.x.
In short
1 new1 fixed
Release note
Minor Changes
Make the OAuth identity and token storage injectable, and add a shared env-credential resolver
createOAuthFlownow takes the consumer's OAuth identity (clientId,consent,redirectUri) and tokenstorageon its context, so other Cloudflare CLIs can reuse the flow under their own OAuth app and store tokens in their own location/format. Also adds a shared env→credential resolver (getAuthFromEnv,getAPIToken,requireApiToken).
Patch Changes
Improve authentication error messages with specific failure reasons
When authentication fails (e.g. during
wrangler dev --remoteor when using remote bindings), the error message now explains exactly what went wrong -- whether no credentials were found, the token expired, or the environment is non-interactive -- and lists actionable steps to fix it, including awrangler whoamitip.Previously, auth failures could produce multiple confusing errors (e.g. "Failed to fetch auth token: 400 Bad Request" followed by "Failed to start the remote proxy session"). Now a single, clear error is shown.
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.