AuthnDelegate

public protocol AuthnDelegate : AnyObject

Delegate that containing functions for managing authn operations

Since

3.0.0
  • This is invoked when user confirmation is required to proceeding with the Transaction data.

    Declaration

    Swift

    func authn(_ authn: D1Authn,
               shouldConfirmTransactionData transactionData: [String: String],
               proceedHandler: (@escaping() -> Void), cancelHandler: (@escaping() -> Void))

    Parameters

    authn

    The D1Authn object to informing the delegate about the transaction data.

    transactionData

    The details of the ongoing transaction.

    proceedHandler

    closure to be called to inform SDK to proceed with the transaction.

    cancelHandler

    closure to be called to cancel the operation.

  • This is invoked when a user verification is requested via Touch ID.

    • Return: The message string to be displayed.

    Declaration

    Swift

    func authnTouchIDOperationPrompt(_ authn: D1Authn) -> String

    Parameters

    authn

    The D1Authn object to informing the delegate about the transaction data.