FidoRegistrationCallback
public class FidoRegistrationCallback : FidoCallback, @unchecked Sendable
A callback for handling FIDO registration in a PingOne Journey.
-
The
PublicKeyCredentialCreationOptionsreceived 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
nameThe name of the property to initialize.
valueThe value of the property.
-
register(deviceName:Asynchronouswindow: ) 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
deviceNameAn optional name for the device being registered.
windowThe
ASPresentationAnchorto present the FIDO UI.
View on GitHub