Contents

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 -> Bool

Parameters

  • 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 expired parameter is YES if the system prematurely terminates a previous non-expiration invocation of the completionHandler.

Mentioned in

Overview

After calling this method, the system dismisses the associated view controller.

See Also

Providing credentials