cloudflare-docs icon indicating copy to clipboard operation
cloudflare-docs copied to clipboard

Token formats should also cover Wrangler CLI generated oauth tokens

Open johnpfeiffer opened this issue 4 months ago • 3 comments

Existing documentation URL(s)

https://developers.cloudflare.com/fundamentals/api/get-started/token-formats/

is helpful but incomplete

What changes are you suggesting?

wrangler login and wrangler auth token can generate tokens too - they have the prefix cfoat_

https://developers.cloudflare.com/workers/wrangler/commands/general/#auth-token

And a universal way to verify a token is

curl -sS "https://api.cloudflare.com/client/v4/accounts" -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"

Additional information

No response

johnpfeiffer avatar Jul 11 '26 02:07 johnpfeiffer

Hey there, we've marked this issue as stale because there's no recent activity on it. This label helps us identify long-standing issues in our repo (and not used to auto-close issues).

github-actions[bot] avatar Jul 25 '26 04:07 github-actions[bot]

I can see it's been reassigned a few times, maybe a human could just prompt an AI to review the PR and docs and see if this improvement helps?

johnpfeiffer avatar Jul 25 '26 23:07 johnpfeiffer

Hey there, we've marked this issue as stale because there's no recent activity on it. This label helps us identify long-standing issues in our repo (and not used to auto-close issues).

github-actions[bot] avatar Aug 10 '26 03:08 github-actions[bot]