cloudflare/workers-sdk @cloudflare/workers-auth@0.2.0
cloudflare/workers-sdk
Captured source
source ↗@cloudflare/workers-auth@0.2.0
Repository: cloudflare/workers-sdk
Tag: @cloudflare/workers-auth@0.2.0
Published: 2026-06-11T15:34:22Z
Prerelease: no
Release notes:
Minor Changes
- #14185 `98c9afe` Thanks @penalosa! - Make the OAuth identity and token storage injectable, and add a shared env-credential resolver
createOAuthFlow now takes the consumer's OAuth identity (clientId, consent, redirectUri) and token storage on 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 `10b5538` Thanks @dario-piotrowicz! - Improve authentication error messages with specific failure reasons
When authentication fails (e.g. during wrangler dev --remote or 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 a wrangler whoami tip.
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.
Notability
notability 3.0/10Routine auth package release for Cloudflare Workers.