cloudflare / cloudflare/cloudflare-docs
Clarification for Wrangler/Miniflared auth variance
- Dominant language
- MDX
- Stars
- 5.2k
- Forks
- 16.7k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 337
Description
### Proposed changes
- https://developers.cloudflare.com/workers/wrangler/
or
- https://developers.cloudflare.com/workers/testing/miniflare/
### Subject Matter
My auth method updated from wrangler login to using local api tokens when i set them up without me realizing it. Would've been nice to know.
### Content Location
I think an additional section within wrangler - https://developers.cloudflare.com/workers/wrangler/ labeled `auth` or something that explains the different forms of login whether you sign in using wrangler login or put CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID in you .env or any other methods there are that I don't know about.
### Additional information
This caused me considerable headache when trying to figure out why my local tests weren't working but they would work when I hit the remote api. I had unintentionally updated wrangler to use the CLOUDFLARE_API_TOKEN for auth instead of my login simply by adding those values to my .env file.
There is one reference to auth I could find under the workers page: https://developers.cloudflare.com/workers/wrangler/migration/v1-to-v2/wrangler-legacy/authentication/
but this is not all that helpful.
Contributor guide
Assessment
This issue has not been assessed yet.