Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTP Code Input #1985

Open
jwalsh-bdt opened this issue Feb 2, 2025 · 2 comments
Open

OTP Code Input #1985

jwalsh-bdt opened this issue Feb 2, 2025 · 2 comments

Comments

@jwalsh-bdt
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Add an OTP code input that allows a user to request and verify an OTP code

Describe the solution you'd like

  • As a user, I want to be able to use an OTP code to verify access to my email, phone, etc. as well authenticate via OTP code.
  • The code length should be configurable and should adjust the number of input boxes accordingly.
  • I want to be able to request an OTP code via an API, store the OTP code received in a variable and compare it to a code that a user enters
  • I want to be able to copy and paste a code sent to my phone and have it populate into each input box.
  • I should be able to request a new code be sent if I don't receive it

Describe alternatives you've considered
Embedding a third party OTP screen is less useful.

@baptisteArno
Copy link
Owner

Thanks for the suggestion, we should have discuss about it first to avoid unnecessary work 😅

In my opinion, your implementation not embracing the chat paradigm. This kind of input's job should only be to capture a code, nothing else. Any other logic should be made in the typebot flow after that.

I would also rename it to a more agnostic name: Pin. And I'd recommend using the accessible corresponding input provided by Ark UI: https://ark-ui.com/react/docs/components/pin-input.

@jwalsh-bdt
Copy link
Contributor Author

jwalsh-bdt commented Feb 3, 2025 via email

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

No branches or pull requests

2 participants