iOS sign-in names api.workos.com and returns via api.aoagents.dev instead of an Orchestrator domain
Reported by Prateek (relayed via the AO session standalone-39) on 2026-11-08.
Signing in on the iPhone shows an iOS prompt: '"Orchestrator" Wants to Use "api.workos.com" to Sign In', and then a "You're signed in" page on api.aoagents.dev. Neither domain is Orchestrator's own.
Agent-collected evidence
Main at 43599f1c88. The phone opens ASWebAuthenticationSession (WebBrowser.openAuthSessionAsync) directly on https://api.workos.com/user_management/authorize, and iOS names that URL's host in its prompt. It returns through https://api.aoagents.dev/app/auth/return (packages/mobile/lib/account.ts:10-12,168), even though it uses the production AuthKit client (client_01KZ3VRKTDKBZ3JA8AMKTF6W2X, custom domain auth.orchestrator.inc).
Desktop release builds with that same client already return through https://orchestrator.inc/app/auth/return/ (frontend/src/main/cloud-auth.ts:58-98), with a comment that this is done so the OS prompt is "attributed to our own domain instead of the opaque WorkOS AuthKit subdomain".
Possible direction (for whoever picks this up): reuse the desktop's orchestrator.inc return page on mobile, and start the auth session at an Orchestrator-owned URL (the AuthKit custom domain or a redirecting start page) so the iOS prompt names Orchestrator's domain.