If you’ve installed the latest iOS 17 update, your iPhone can automatically remove one-time codes for you.