Skip to content

Render typed managed auth errors - #27

Open
masnwilliams wants to merge 3 commits into
mainfrom
hypeship/render-reauth-errors
Open

Render typed managed auth errors#27
masnwilliams wants to merge 3 commits into
mainfrom
hypeship/render-reauth-errors

Conversation

@masnwilliams

@masnwilliams masnwilliams commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

summary

  • render typed challenge outcomes with specific titles and context-neutral descriptions
  • distinguish rejected authenticator codes from invalid usernames or passwords
  • add a patch changeset and focused error-display tests

dependency

kernel/kernel#3666 is merged and deployed. The component remains backward-compatible because unknown and older codes retain their current fallback behavior.

validation

  • bun test
  • bun run typecheck
  • bun run format:check
  • bun run build

Note

Low Risk
UI-only error copy and a small exported helper; no auth or API behavior changes, with backward-compatible fallbacks for unknown codes.

Overview
StepError now maps new managed-auth errorCode values to dedicated titles and descriptions instead of falling back to generic error copy.

Adds display entries for challenge-style outcomes (totp_required, sms_code_required, email_code_required, account_choice_required, customer_input_required, external_action_required) with neutral wording that avoids “reauth” framing, plus totp_code_rejected with recovery guidance distinct from credentials_invalid.

Exports errorDisplayForCode for lookup and adds unit tests; unknown codes still use the existing localization fallback. Patch changeset for @onkernel/managed-auth-react.

Reviewed by Cursor Bugbot for commit 02be4ec. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
managed-auth-react-demo Ready Ready Preview Aug 31, 2026 1:34am

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