mirror of
https://github.com/ShayManor/github-readme-stats.git
synced 2026-12-02 11:53:48 +05:30
The OAuth app registers https://gh-stats.com/api/auth/github/callback, but the app was sending the http:// form. GitHub compares redirect_uri to the registered callback character for character, so it refused every attempt with "The redirect_uri is not associated with this application" and showed users a warning that the app might be redirecting them somewhere they were not expecting. Sign-in has been failing for everyone, and it gates themes, custom tags and achievements. _derived_redirect_uri built the URL from X-Forwarded-Proto, falling back to request.scheme. The cloudflared tunnel does not reliably forward that header, so the scheme resolved to http. The comment above it claimed the headers are set, which is what hid this. Anything that is not localhost or 127.0.0.1 is https. Local dev keeps working over plain http, pinned by a test. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BwMoSbmK77Ph7XaV5YnAdS