consumeOneTimeCode(_:)
Mark a one-time code as “consumed” by the current process.
Declaration
@MainActor func consumeOneTimeCode(_ oneTimeCode: ASVerificationCode) async throwsParameters
- oneTimeCode:
The code to mark as consumed.
Discussion
A code should only be marked as consumed if it was submitted to a service for the purposes of authentication.
Consuming a code will mark a code’s containing message as read in the Messages and Mail apps. Depending on the user’s preference, this may also delete the code’s containing message.