Skip to content

Render typed managed auth errors - #27

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

Render typed managed auth errors#27
masnwilliams wants to merge 2 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

Merge and deploy kernel/kernel#3666 before publishing this package. The component remains backward-compatible with the existing API 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 in managed-auth-react; unknown error codes still use existing localization fallbacks.

Overview
StepError now maps new managed-auth error_code values to dedicated titles and recovery copy instead of the generic error fallback.

Adds display entries for reauthentication blockers (totp_required, sms_code_required, email_code_required, account_choice_required, customer_input_required, external_action_required) with neutral wording that avoids “reauth” in user-facing text. totp_code_rejected gets its own message (fresh code / reconnect guidance) so it is not conflated with credentials_invalid.

Lookup is exposed as errorDisplayForCode for testing; StepError uses that helper unchanged for unknown or legacy codes. Patch changeset for @onkernel/managed-auth-react; tests cover the new mappings.

Reviewed by Cursor Bugbot for commit 850d202. 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 29, 2026 9:00am

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