There’s an input attribute for a one-time code

April 24, 2020 , I learned...

You know the little text message you get when logging into a site where you have two-factor authentication enabled?

Screenshot of the Apple Messages desktop app with a message from Dropbox containing a six-digit code to log in.

Apparently, that’s something HTML can fetch straight from a message app and use to autocomplete a numeric/password input that has the autocomplete="one-time-code" attribute on it.

Source / Spec