Skip to content

Conversation

@brionmario
Copy link
Member

Purpose

This pull request addresses component type issues in both the JavaScript and React packages. The main changes include adding new component types to the embedded flow model and improving error handling for unsupported component types during authentication component rendering.

Component type model updates:

  • Added new component types OtpInput and PhoneInput to the EmbeddedFlowComponentType enum in embedded-flow-v2.ts to support one-time password and phone number input fields.

Error handling improvements:

  • Updated AuthOptionFactory.tsx to gracefully handle unsupported component types by returning null and logging a warning instead of throwing a runtime error.

Other:

  • Marked as a patch release for both @asgardeo/javascript and @asgardeo/react to address component type issues.

Related Issues

  • N/A

Related PRs

  • N/A

Checklist

  • Followed the CONTRIBUTING guidelines.
  • Manual test round performed and verified.
  • Documentation provided. (Add links if there are any)
  • Unit tests provided. (Add links if there are any)

Security checks

@asgardeo-github-bot
Copy link

🦋 Changeset detected

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

@brionmario brionmario merged commit a717ec3 into asgardeo:main Dec 23, 2025
3 of 6 checks passed
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.

3 participants