cloudflare / cloudflare/cloudflare-docs

Token formats should also cover Wrangler CLI generated oauth tokens

Open
#32,027 3 comments 1 reaction 4 assignees Claimed by @vy-ton View on GitHub
content:edit documentation product:fundamentals product:workers stale
Dominant language
MDX
Stars
5.2k
Forks
16.7k
Avg merge
2d 6h
Merged PRs (30d)
337

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.