Skip to content

Token formats should also cover Wrangler CLI generated oauth tokens #32027

Description

@johnpfeiffer

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

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions