I'm struggling with wrangler OAuth authentication on macOS (m1 Sonoma)
I'm attempting to setup a new worker on my m1 mac (I haven't set one up on this machine before). As part of the login process, I need to login to cloudflare, but it doesn't appear to be working.
When I run
npx wrangler login
in terminal, it opens Safari (but same results in Chrome), I follow the login process, but then it redirects to a local host address (localhost:8976/oauth/callback?code=...
), safari fails to load with the error Safari can't connect to the server "localhost"
. I've tried with Chrome, and get similar results.
Additionally, the following output is printed to the console:
It appears similar to this bug, that was closed: https://github.com/cloudflare/workers-sdk/issues/2433.
I'm unsure how to proceed. Does wrangler have another method for logging in? Has anyone else seen this?GitHub
Issues · cloudflare/workers-sdk
⛅️ Home to Wrangler, the CLI for Cloudflare Workers® - Issues · cloudflare/workers-sdk
1 Reply
That seems to have solved the problem. Now I feel like an idiot. Thanks for the help.