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
Copy file name to clipboardExpand all lines: packages/wrangler/src/__tests__/whoami.test.ts
+46-2Lines changed: 46 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -246,8 +246,30 @@ describe("whoami", () => {
246
246
├─┼─┤
247
247
│ Account Three │ account-3 │
248
248
└─┴─┘
249
-
🔓 Token Permissions: If scopes are missing, you may need to logout and re-login.
249
+
🔓 Token Permissions:
250
250
Scope (Access)
251
+
252
+
[33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1mWrangler is missing some expected Oauth scopes. To fix this, run \`wrangler login\` to refresh your token. The missing scopes are:[0m
253
+
254
+
- account:read
255
+
- user:read
256
+
- workers:write
257
+
- workers_kv:write
258
+
- workers_routes:write
259
+
- workers_scripts:write
260
+
- workers_tail:read
261
+
- d1:write
262
+
- pages:write
263
+
- zone:read
264
+
- ssl_certs:write
265
+
- ai:write
266
+
- queues:write
267
+
- pipelines:write
268
+
- secrets_store:write
269
+
- containers:write
270
+
- cloudchamber:write
271
+
272
+
251
273
🎢 Membership roles in \\"Account Two\\": Contact account super admin to change your permissions.
252
274
- Test role"
253
275
`);
@@ -280,8 +302,30 @@ describe("whoami", () => {
280
302
├─┼─┤
281
303
│ Account Three │ account-3 │
282
304
└─┴─┘
283
-
🔓 Token Permissions: If scopes are missing, you may need to logout and re-login.
305
+
🔓 Token Permissions:
284
306
Scope (Access)
307
+
308
+
[33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1mWrangler is missing some expected Oauth scopes. To fix this, run \`wrangler login\` to refresh your token. The missing scopes are:[0m
309
+
310
+
- account:read
311
+
- user:read
312
+
- workers:write
313
+
- workers_kv:write
314
+
- workers_routes:write
315
+
- workers_scripts:write
316
+
- workers_tail:read
317
+
- d1:write
318
+
- pages:write
319
+
- zone:read
320
+
- ssl_certs:write
321
+
- ai:write
322
+
- queues:write
323
+
- pipelines:write
324
+
- secrets_store:write
325
+
- containers:write
326
+
- cloudchamber:write
327
+
328
+
285
329
🎢 Unable to get membership roles. Make sure you have permissions to read the account. Are you missing the \`User->Memberships->Read\` permission?"
0 commit comments