UserInteractionDelegate
public protocol UserInteractionDelegate : AuthenticatorSelectable
The UserInteractionDelegate
describes the methods that FIDO components call on their delegate to handle user interaction during Registration
and Authentication
operations.
-
Requests credentials from the delegate during a registration or authentication.
This method is called during an operation to allow the app to provide appropriate credentials that will be validated by the authenticator.
Note
To return an error within the completion parameter, please use
UserVerification.Error
.Return its
.userCancelled
error in case the user has cancelled the current operation. Return its.cancelled
error in case the current operation was cancelled by the application.Declaration
Swift
func verifyUser(_ context: UserVerification.Context, completion handler: @escaping (Result<UserVerification.Outcome, Error>) -> ())
Parameters
context
An object that contains information about the user verification.
handler
A handler that the delegate method must call. The handler contains a single argument that represents either a successful result with the credentials or a failure result with an error.