feat(FN-4577): complete Step 1 — exclude github-copilot redirect rewrite

Fusion-Task-Id: FN-4577
Fusion-Task-Lineage: 11846d04-cbc0-414e-b72d-7feeaaac8a98
This commit is contained in:
Fusion
2026-05-15 01:34:05 -07:00
committed by gsxdsm
parent ed5269d2a2
commit a3ced342cb

View File

@@ -149,9 +149,10 @@ export const registerAuthRoutes: ApiRouteRegistrar = (ctx) => {
return false;
}
// These providers rely on pasted-code UX with their own localhost callbacks,
// so redirect_uri must remain untouched.
if (providerId === "openai-codex" || providerId === "anthropic") {
// These providers do not use a redirect_uri-based callback:
// - openai-codex, anthropic: pasted-code UX with their own localhost callbacks
// - github-copilot: OAuth device-code flow (verification_uri has no state/redirect_uri)
if (providerId === "openai-codex" || providerId === "anthropic" || providerId === "github-copilot") {
return false;
}