You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(wrangler): add `wrangler auth token` command
Add a new command `wrangler auth token` that retrieves the current OAuth token,
refreshing it if necessary. This is similar to `gh auth token` in the GitHub CLI
and allows users to easily retrieve their authentication token for use with other
tools and scripts.
Fixes#10095
Co-Authored-By: mkane@cloudflare.com <m@mk.gg>
* fix: output auth token without preamble and update snapshots
Co-Authored-By: mkane@cloudflare.com <m@mk.gg>
* fix: use printBanner: false for proper preamble suppression
Co-Authored-By: mkane@cloudflare.com <m@mk.gg>
* docs: add usage example to changeset per review
Co-Authored-By: mkane@cloudflare.com <m@mk.gg>
* feat(wrangler): add --json flag and refactor auth token command
- Refactor getAuthToken to getOAuthTokenFromLocalState (only handles OAuth)
- Rename LocalState to localState throughout user.ts
- Add --json flag to return structured output with token type
- Support API key/email auth with --json flag
- Add JSDoc documentation for auth priority behavior
- Update changeset to reflect all auth types
- Update tests (24 tests passing)
Co-Authored-By: mkane@cloudflare.com <m@mk.gg>
* chore: trigger CI re-run for PR description validation
Co-Authored-By: mkane@cloudflare.com <m@mk.gg>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
0 commit comments