You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
Because the /user Cloudflare v4 API endpoint doesn't support API tokens yet, we can't retrieve a user's email using their API token. This means wrangler whoami won't be able to provide the expected email output for API token users (an error message informing users of this is currently printed out).
The text was updated successfully, but these errors were encountered:
The new default cloudflare workers API token template includes the required permission in order to do this lookup:
I'm thinking the output including your email should look something like the following to mirror the output of using the global API token:
⌘ ~> wrangler whoami
👋 You are logged in with an API Token, associated with the email 'dhaynes@cloudflare.com'.
+------------------------------------------+----------------------------------+
| Account Name | Account ID |
+------------------------------------------+----------------------------------+
| My Security Team Testing Account | ... accountID ... |
+------------------------------------------+----------------------------------+
- query the same api endpoint as we do with the global token, but now with the api token
- return errors, print helpful statement if the api token doesn't have the right permission
Closes#863
Because the /user Cloudflare v4 API endpoint doesn't support API tokens yet, we can't retrieve a user's email using their API token. This means
wrangler whoami
won't be able to provide the expected email output for API token users (an error message informing users of this is currently printed out).The text was updated successfully, but these errors were encountered: