Skip to content

Document managed auth attempt outcomes - #778

Draft
akxue wants to merge 1 commit into
mainfrom
hypeship/managed-auth-attempt-outcomes
Draft

akxue wants to merge 1 commit into
mainfrom
hypeship/managed-auth-attempt-outcomes

Conversation

@akxue

@akxue akxue commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

merge only after the managed auth api changes that add last_attempt and outcome are deployed. this page documents fields the public api doesn't return yet.

context

managed auth reports a failed login as error_code and error_message only. neither says which part of the login stopped, error_code falls back to flow_failed for many distinct causes, health checks carry no reason, and replay links open at the start of the video. the api is adding one outcome object, shared by the connection (last_attempt), timeline events (outcome) and managed_auth_state sse events (outcome), plus a typed code set (ManagedAuthOutcomeCode). this pr documents that phase 1 surface. login instructions are a later phase and aren't mentioned.

changes

  • new page auth/attempt-outcomes.mdx (sidebar: managed auth > outcomes, after lifecycle):
    • where the outcome appears and which surfaces carry type and at
    • every field: type, result, phase, code, debug_message, at, replay (replay_id, offset_ms), health_check_evidence, with when each is null
    • result values, phase values, and health check evidence values with what each means
    • when last_attempt is replaced, with the health check rule table and a one-day example
    • how pauses show up (NEEDS_INPUT, code: null, pause fields unchanged)
    • timeline and sse behavior, with typescript and python examples
    • what to do on SIGNED_OUT and INCONCLUSIVE
    • the full outcome code list grouped by result, with meaning and action, and how code relates to the unchanged error_code
  • auth/connection-lifecycle.mdx: short pointers from the health check step, the failure section, and the debugging section to the new page. the existing error_code table is unchanged.
  • docs.json: nav entry.

copy follows the repo's heading casing (title case h1, sentence case h2 and below) with lowercase brand prose in the body, as in auth/programmatic.mdx.

testing and validation

  • mint validate: strict build passed.
  • mint broken-links (whole site): no broken links.
  • mint broken-links --check-anchors on the two changed pages: no broken links.
  • mint dev: /auth/attempt-outcomes and /auth/connection-lifecycle render (200), all sections present.
  • a script compared every backticked name on the new page with the api contract: all 29 codes, 5 results, 3 phases and 6 evidence values present; no names outside the contract or the existing api.
  • not run: the code samples aren't type-checked, because the sdks don't have these fields yet. go samples are left out until the go sdk field names exist.

open questions

  • the contract's actions for SIGNED_OUT, INCONCLUSIVE, login_form_not_found, account_choice_required and unhandled_page mention login instructions, which ship later. this page leaves those out and should gain them with the login instructions docs.
  • the contract says to check "the check page (auth_check_url)", but that field isn't public. the page says "the page that health checks open" and points to a recorded health check's replay instead.
  • the debug message format for the phase is still open, so the page shows one example and tells readers not to parse the text.

@mintlify

mintlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
Kernel 🟢 Ready View Preview Nov 23, 2026, 7:32 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

This branch was successfully deployed

1 active deployment
staging — c1bdffc1 Deployed Nov 23, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant