<!--
{
  "documentType" : "article",
  "framework" : "Security",
  "identifier" : "/documentation/Security/one-time-codes",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "One-time codes"
}
-->

# One-time codes

Streamline entry of authentication and recovery codes.

## Discussion

iOS detects when an SMS message contains a one-time code and offers that code for AutoFill in one-time code fields in apps and websites. Improve the usability of one-time codes in your apps and websites by setting the content type of fields where people enter one-time codes. Improve security by adopting domain-bound codes to make it harder for people to enter one-time codes into phishing websites.

## Topics

### Essentials

[Enabling AutoFill for domain-bound SMS codes](/documentation/Security/enabling-autofill-for-domain-bound-sms-codes)

Streamline entering codes you send as SMS messages.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)