Description
Fix white-labeling issue where the OAuth success/redirect page (/redirect?status=success) always shows the default Composio logo instead of the customer's configured whitelabel logo.
What changed:
- Read the
appLogo query parameter (passed by Apollo's OAuth callback handler)
- When
appLogo is present, display the custom logo via the existing AppIcon component
- When
appLogo is absent, fall back to the default Logo component (backward compatible)
The first screen of the auth flow already displays the custom logo correctly (via LinkCardHeader → AppLogo → AppIcon). This PR replicates that pattern on the redirect/success page.
Companion backend PR: ComposioHQ/hermes — passes the project's logoURL from project config as an appLogo query param in the OAuth callback redirect URL.
Ticket: T-11225
Triggered by: palash@composio.dev | Source: slack
Session: https://zen-api-production-4c98.up.railway.app/dashboard/#/chat/zen-64c28838f6cf
How did I test this PR
- Ran
pnpm lint — 0 errors (302 pre-existing warnings)
- Verified the change is backward compatible: when
appLogo is not in query params, the default Logo component renders (same as before)
- Existing E2E tests in
e2e/tests/redirect/redirect-page.spec.ts remain valid