Minor Changes
-
#14185
98c9afeThanks @penalosa! - Make the OAuth identity and token storage injectable, and add a shared env-credential resolvercreateOAuthFlownow 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
-
#14213
10b5538Thanks @dario-piotrowicz! - Improve authentication error messages with specific failure reasonsWhen 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.