fix: handle custom URL scheme verification for mobile apps#2471
Conversation
When mobile apps use custom URL schemes (e.g. com.example.app://callback), new URL().origin returns "null", causing origin verification to fail. This adds special handling in isOriginVerified to match the URL scheme against allowed origins for custom protocols. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @kronosapiens's task —— View job Analysis CompleteTask: Review changes in controller repository and update docs repository if user-facing behavior changed. SummaryThe Fix:
Decision: NO DOCUMENTATION CHANGES NEEDED Rationale:
The existing documentation in Docs reviewed:
No updates required. |
Summary
com.example.app://callback),new URL().originreturns"null", causing origin verification to always fail with "Application domain does not match the configured domain"isOriginVerifiedto match the URL scheme (protocol) against allowed origins when the origin is"null"redirectUrl(instead ofredirectOrigin) toisOriginVerifiedso the function can parse custom schemes correctlyTest plan
🤖 Generated with Claude Code