https://sonarly.com/issue/41593?type=bug
The OAuth consent screen allows clicking “Authorize” but performs no action when the URL lacks <code>redirect_uri</code>. This creates a dead-end in an auth/onboarding flow.
Fix: I implemented the root-cause fix in the frontend OAuth authorize flow so users no longer hit a silent dead-end when `redirect_uri` is missing.
What changed:
- In `Authorize.tsx`:
- Added explicit `isMissingRedirectUrl` validation.
- Updated `handleAuthorize` to set a clear actionable error message and return early when required params are missing.
- Rendered that message in the consent UI when `redirect_uri` is absent.
- Disabled the Authorize button for invalid links to prevent repeated no-op clicks.
- In `AuthorizeActionButtons.tsx`:
- Added an optional `isAuthorizeDisabled` prop and wired it to the Authorize button `disabled` state.
This preserves existing OAuth behavior (backend still requires redirect URI) while making the frontend fail clearly and safely for malformed auth URLs.
Authored by Sonarly by autonomous analysis (run 47443).