Migrating production infrastructure? Get up to ₹10,000 in migration credits. Apply now
voroaBlog
Web Services

GitHub OAuth Redirect URI Fragments Rejected From 1 Feb 2027

· · 3 min read

GitHub OAuth redirect URI fragments rejected from 1 February 2027 - remove the # from your callback URL

If your app has a “Sign in with GitHub” button, check your GitHub OAuth redirect URI this week. On 30 November 2026 GitHub announced that from 1 February 2027 it will reject OAuth authorization requests whose redirect URI contains a URL fragment - the part after a #. This post is for developers in India who run GitHub login in a web app, an internal tool or a GitHub App: what is changing, why, and how to fix it without breaking sign-in.

Advertisement

The 1 February 2027 rule

Per the GitHub changelog post, starting 1 February 2027 GitHub will reject authorization requests that use a redirect URI with a fragment. After enforcement, you cannot register or use such a callback URL at all. Until then, affected apps show a warning in their settings, and users signing in see a caution message.

It applies to both OAuth apps and GitHub Apps on github.com, across the Free, Team and Enterprise Cloud plans. GitHub Enterprise Server is not affected.

Why a # in the callback is a problem

A redirect URI is where GitHub sends the user back, carrying an authorization code. The OAuth 2.0 specification says that URI must not contain a fragment, and GitHub cites that rule. The practical reason is security: a fragment can be used to intercept an authorization code or token during the redirect. Browsers keep fragments on the client side and can carry them across redirects, which is where a code can leak to a script that should not see it.

Diagram: GitHub OAuth redirect URI change - warnings now, sign-in caution for users, fragments rejected from 1 February 2027, fix by moving state out of the fragment

How to check your app

  1. Open your OAuth app or GitHub App settings on GitHub and look at every registered callback URL. Anything with a # is affected. GitHub shows a warning there now.
  2. Search your code for where the redirect_uri parameter is built. Single-page apps with hash routing (https://app.example.com/#/auth/callback) are a common case.
  3. Check staging, preview and local callbacks too. An OAuth app takes one callback URL and a GitHub App can take several, so staging often means a separate app - easy to forget.

How to fix it

The fix is to give GitHub a callback URL with a real path, then route in your app afterwards:

  • Hash-routed SPA: register https://app.example.com/auth/callback, serve your app’s HTML at that path, let your router read the code from the query string, then send the code to your backend, which exchanges it for a token. The exchange needs the client secret, so it must never happen in the browser. If your static host only serves index.html at /, add a rewrite so /auth/callback serves it too.
  • State you kept in the fragment: move it into the OAuth state parameter or into a server-side session. state is designed for this and also protects against cross-site request forgery.
  • Backend apps: usually already use a path like /auth/github/callback; just confirm no fragment was added for a frontend redirect.

Update the URL in GitHub’s settings and in your code in the same release, and test sign-in on staging first.

Fix it before the new year

Nothing about the change is India-specific. The apps most likely to be caught are the ones nobody owns any more: internal dashboards, college and hackathon projects, and quick admin tools built on a hash router and still used daily. A sign-in flow that breaks on 1 February is a support-ticket storm. Fix it in December while it is a small change.

Where your callback lives on Voroa

If you host the app on Voroa, a static site keeps client-side routes such as /auth/callback working on refresh, as the React and Vite deploy guide explains, and a web service handles the code exchange on the server. The client secret belongs only on that web service, in its environment variables, which Voroa stores encrypted and never shows back; a static site should hold at most the public client ID, because build-time values end up in the browser bundle. If you need a domain for the callback, custom domains come with automatic HTTPS. For the other GitHub change landing this week, see our post on pull_request_target being blocked.

Two months is plenty for a change this small - as long as it is on someone’s list today.

Advertisement