Mock, dark theme, built on the app's own tokens (autogpt_platform/mobile-app/src/lib/theme.ts). Eight screens: the in-chat card, the sign-in hand-off (two screens), the resumed chat, the key sheet, the chat's Connections tab, adding a connection by hand, and a later composer option.
setup_requirements tool output. One row per missing service; label follows the row's type.ASWebAuthenticationSession / Chrome Custom Tabs, never a WebView (Google blocks those). Shares Safari's Google login.Paste your API key. It's stored encrypted and never shown in the chat.
api_key, user_password and host_scoped; fields switch by type. Secure entry, no autocorrect.credential://provider/id with the text. Logo stack shows what the chat can use.| Step | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| App (new) | Tap Sign in → GET /integrations/{p}/login?scopes&client=native | Save pending flow (provider, chat, state) to SecureStore | openAuthSessionAsync(login_url, "autogpt-app://integrations/oauth") | Gets autogpt-app://…?code&state → POST /integrations/{p}/callback with JWT | Grant to expert (if any) → PUT credential-selection → send follow-up line | |
| Backend | Starts the state with native. | Checks state, PKCE, swaps code, saves account (no change) | ||||
| Web callback | Native state → 302 to app scheme instead of postMessage + close | |||||
| Provider | Consent page | Redirects to agpt.co/auth/integrations/oauth_callback (already registered) |