FidoAuthenticationCallback

public class FidoAuthenticationCallback : FidoCallback, @unchecked Sendable

A callback for handling FIDO authentication in a PingOne Journey.

  • The PublicKeyCredentialRequestOptions received from the server for FIDO authentication.

    Declaration

    Swift

    public var publicKeyCredentialRequestOptions: [String : Any]
  • Initializes the callback’s properties with values from the JSON payload.

    Declaration

    Swift

    public override func initValue(name: String, value: Any)

    Parameters

    name

    The name of the property to initialize.

    value

    The value of the property.

  • authenticate(window:) Asynchronous

    Initiates the FIDO authentication process using async/await.

    Throws

    An error if the authentication process fails.

    Declaration

    Swift

    @MainActor
    public func authenticate(window: ASPresentationAnchor) async -> Result<[String : Any], Error>

    Parameters

    window

    The ASPresentationAnchor to present the FIDO UI.