DEV Community

Cover image for HTML autocomplete "one-time-code".
Maciej Trzciński 🌱🇵🇱
Maciej Trzciński 🌱🇵🇱

Posted on

HTML autocomplete "one-time-code".

Using only html autocomplete (autocomplete="one-time-code") you can autofill inputs using security codes sent by SMS providers.

<input
  type="text"
  name="auth-token"
  inputmode="numeric"
  pattern="[0-9]*"
  autocomplete="one-time-code"
/>
Enter fullscreen mode Exit fullscreen mode

Security code


If you like this article, follow me on Twitter @MaciejDEV

Discussion (0)