Token still valid after all tokens have been removed
Hi there!) so i have a token saved localy i used for dev, now i refreshed/removed all the tokens from the dashboard (both user and account ones) but the local one still works
anywhere else i missed to check?
12 Replies
For
wrangler? I assume you used wrangler login?wrangler yep but not "login from web" used a token
wrangler logout
⛅️ wrangler 4.19.1
───────────────────
You are logged in with an API Token. Unset the CLOUDFLARE_API_TOKEN in the environment to log out.
how could it still be vaild? is it ok or im just paranoid 😅
What if you do
wrangler whoami?wrangler whoami
⛅️ wrangler 4.19.1
───────────────────
Getting User settings...
✘ [ERROR] A request to the Cloudflare API (/accounts) failed.
Invalid access token [code: 9109]
If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose yeah you are right this is more usefull but stil lvery strange 😦
If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose yeah you are right this is more usefull but stil lvery strange 😦
Sounds like you did nuke the token
nope
see

Is that in the same directory?
ah you say wrangler.toml could impact?
yeah
ah you are right changed folder and it fails the same d1 list call
Might be in that one folder, it still has an OAuth token for some reason?
strange if it was 0Auth, it would have expired by now
i used it all last week
let me try on a diff machine to be sure (as maybe my env is diff in a diff folder)
oki yep confirming, huh one issue less
thank you @Hard@Work very appreciated, hope you have a wonderful day!🫶