Skip to content

Forward Vercel callbacks from web origin#142

Open
arseniycodes wants to merge 1 commit into
mainfrom
ash/vercel-web-callback-forward
Open

Forward Vercel callbacks from web origin#142
arseniycodes wants to merge 1 commit into
mainfrom
ash/vercel-web-callback-forward

Conversation

@arseniycodes

@arseniycodes arseniycodes commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Forward /vercel/oauth/callback requests that land on the web origin to the API callback origin.
  • Preserve the full Vercel OAuth query string so the existing callback handler can exchange the code and complete setup.

Validation

  • pnpm exec tsx --test src/oauthCallbackForwarding.test.ts in apps/web
  • pnpm --filter @superlog/web typecheck

Summary by cubic

Forward Vercel OAuth callbacks that land on the web app to the API callback endpoint, preserving the full query string. Prevents failed setup when users are redirected to the web domain.

  • Bug Fixes
    • Forward /vercel/oauth/callback from web origin to the API origin with the original query string.
    • Added a client-side forwarder component and integrated it into App to redirect on load.
    • Added unit tests for forwarding behavior and non-matching paths.

Written for commit 63c4638. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant