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
Hard@Work
Hard@Work6mo ago
For wrangler? I assume you used wrangler login?
WhoAmI
WhoAmIOP6mo ago
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 😅
Hard@Work
Hard@Work6mo ago
What if you do wrangler whoami?
WhoAmI
WhoAmIOP6mo ago
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 😦
Hard@Work
Hard@Work6mo ago
Sounds like you did nuke the token
WhoAmI
WhoAmIOP6mo ago
nope see
WhoAmI
WhoAmIOP6mo ago
No description
Hard@Work
Hard@Work6mo ago
Is that in the same directory?
WhoAmI
WhoAmIOP6mo ago
ah you say wrangler.toml could impact? yeah ah you are right changed folder and it fails the same d1 list call
Hard@Work
Hard@Work6mo ago
Might be in that one folder, it still has an OAuth token for some reason?
WhoAmI
WhoAmIOP6mo ago
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!🫶

Did you find this page helpful?