Repository navigation
[Fundamentals] Document Wrangler OAuth token format and how to verify a token - #34355
Merged
jhutchings1 merged 2 commits intoOct 23, 2026
Conversation
neelakolkar-cf
requested review from
a team,
AdamBouhmad,
Sahidya and
jhutchings1
as code owners
October 15, 2026 10:38
Contributor
AI Review✅ Reviewed Commands
|
jhutchings1
reviewed
Oct 15, 2026
|
|
||
| Treat the returned value as a secret. Do not commit it to source control or share it. | ||
|
|
||
| ## Verify a token |
Contributor
There was a problem hiding this comment.
@neelakolkar-cf I think this might be the better API to recommend for users. @pnlop What do you think? https://developers.cloudflare.com/api/resources/user/subresources/tokens/methods/verify/
Collaborator
Author
There was a problem hiding this comment.
Used this API instead, thanks! Could you please re-review?
jhutchings1
approved these changes
Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #32027.
The Token formats page listed only the API key and API token prefixes (
cfk_,cfut_,cfat_) and described them as the format for "Cloudflare API credentials", which implied the list was complete. It did not cover thecfoat_OAuth tokens thatwrangler loginproduces, or explain how to check whether a token is valid.This PR:
cfoat_prefix, linking towrangler loginandwrangler auth token, noting thatwrangler auth tokenrefreshes an expired token, and reminding readers to treat the token as a secret.curlexample that sends a user API token to the Verify Token endpoint (/user/tokens/verify), as suggested in review. A valid token returns itsidand astatusofactive.This replaces #32730, which covered the
cfoat_prefix but not token verification, and was closed without merging.Documentation checklist