completeOneTimeCodeRequest(using:completionHandler:)
Provides the user-selected one-time passcode (OTP).
Declaration
func completeOneTimeCodeRequest(using credential: ASOneTimeCodeCredential, completionHandler: (@Sendable (Bool) -> Void)? = nil)func completeOneTimeCodeRequest(using credential: ASOneTimeCodeCredential) async -> BoolParameters
- credential:
The OTP credential chosen by the person.
- completionHandler:
Optional work that the extension performs as a background priority task after the request completes. The
expiredparameter isYESif the system prematurely terminates a previous non-expiration invocation of thecompletionHandler.
Mentioned in
Overview
After calling this method, the system dismisses the associated view controller.