workers-sdk
workers-sdk copied to clipboard
🚀 Feature Request: [API tokens] describe the current permissions in `wrangler whoami`
trafficstars
Describe the solution
When running wrangler whoami we should display a list of allowed permissions for the current authenticated user (or API token). This will help with scenarios where other commands fail with authorisation errors from the backend API.
this requires change to internal permissions on API tokens, which isn't currently being pursued. but we may want to update messaging/logging to be more helpful
As far as I know, this is implemented. Running wrangler whoami gives a list of scopes for the current token, and their permission level.
