HTML: Auto fill-in OTP received in text message (SMS)

Posted . Visible to the public.

Browsers can auto fill-in one time codes if advised. Use it like this:

<input autocomplete="one-time-code">

Demo: https://twitter.com/sulco/status/1320700982943223808 Show archive.org snapshot

Browser support is pretty good Show archive.org snapshot since mid-2022 (Chrome 93+, no Firefox).

Profile picture of Dominik Schöler
Dominik Schöler
Last edit
Michael Leimstädtner
License
Source code in this card is licensed under the MIT License.
Posted by Dominik Schöler to makandra dev (2023-09-21 11:36)