FidoRegistrationCallback

public class FidoRegistrationCallback : FidoCallback, @unchecked Sendable

A callback for handling FIDO registration in a PingOne Journey.

  • The PublicKeyCredentialCreationOptions received from the server for FIDO registration.

    Declaration

    Swift

    public var publicKeyCredentialCreationOptions: [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.

  • Initiates the FIDO registration process using async/await.

    Throws

    An error if the registration process fails.

    Declaration

    Swift

    @MainActor
    public func register(deviceName: String? = nil, window: ASPresentationAnchor) async -> Result<[String : Any], Error>

    Parameters

    deviceName

    An optional name for the device being registered.

    window

    The ASPresentationAnchor to present the FIDO UI.