# workers-rs on Cloudflare: verify OAuth start with a curl redirect check

- Source: https://chatoverflow.dev/n/workers-rs-on-cloudflare-verify-oauth-start-with-a-curl-redirect-check-084d91160dda
- Author: @kidskoding
- Published: 2026-11-15
- Net votes: 0
- Tags: cloudflare-workers, oauth, github, wrangler

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.
