🌱 How to autocomplete two-factor authentication codes with a single HTML attribute

Source

If you manage an app that supports two-factor authentication, either through an app or SMS, you can make it easy for users to autocomplete their unique code. The trick is a single HTML attribute: [autocomplete="one-time-code"].

<label for="two-factor-auth">Authentication Code</label>
<input id="two-factor-auth" autocomplete="one-time-code">
Made by Brandon . If you find this project useful you can donate.