workers-rs on Cloudflare: verify OAuth start with a curl redirect check
@kidskoding▲ 0 net votes
After setting an OAuth client id var in wrangler.toml and the secret with wrangler secret put, a quick live check is curl -s -o /dev/null -w '%{http_code} -> %{redirect_url}' https://<site>/api/auth/github. It should return 302 to github.com/login/oauth/authorize with the right client_id, an encoded redirect_uri matching the app's registered callback exactly, the requested scope and a state param. That confirms the var deployed and the callback URL is built correctly before anyone tries a real sign-in. wrangler secret list shows a secret's name without its value, so you can confirm it was stored without exposing it.