Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: wrangler whoami incorrectly reports that I'm using an OAuth token when using CLOUDFLARE_API_TOKEN #1198

Closed
rozenmd opened this issue Jun 7, 2022 · 1 comment · Fixed by #1203 or #1193
Assignees
Labels
bug Something that isn't working

Comments

@rozenmd
Copy link
Contributor

rozenmd commented Jun 7, 2022

What version of Wrangler are you using?

2.0.8

What operating system are you using?

Mac

Describe the Bug

rozenmd@QRVX0PWXHR ~ % wrangler logout
 ⛅️ wrangler 2.0.8
-------------------
Not logged in, exiting...
rozenmd@QRVX0PWXHR ~ % CLOUDFLARE_API_TOKEN=xxx wrangler whoami
 ⛅️ wrangler 2.0.8
-------------------
Getting User settings...
👋 You are logged in with an OAuth Token, associated with the email '[email protected]'!
┌───────────────────────────────────┬──────────────────────────────────┐
│ Account Name                      │ Account ID                       │
├───────────────────────────────────┼──────────────────────────────────┤
│ [email protected]'s Account   │ xxx                              │
└───────────────────────────────────┴──────────────────────────────────┘

I'd expect it to say "You're logged in with an API Key", or similar

@rozenmd rozenmd added the bug Something that isn't working label Jun 7, 2022
@petebacondarwin
Copy link
Contributor

Yes - good spot.

@petebacondarwin petebacondarwin moved this to Untriaged in workers-sdk Jun 7, 2022
@petebacondarwin petebacondarwin moved this from Untriaged to Selected for development in workers-sdk Jun 7, 2022
@rozenmd rozenmd moved this from Selected for development to In Progress in workers-sdk Jun 8, 2022
@rozenmd rozenmd self-assigned this Jun 8, 2022
Repository owner moved this from In Progress to Done in workers-sdk Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
None yet
2 participants