AuthenticationUserInteractionDelegate
public protocol AuthenticationUserInteractionDelegate : UserInteractionDelegate
The AuthenticationUserInteractionDelegate
describes the methods that FIDO components call on their delegate to handle user interaction during Authentication
operations supporting username-less authentication.
If multiple accounts are defined in the device, the SDK requires to know which is the account to be used.
-
Asks the delegate to select an account to be used for a given operation.
Important
This method is called even if there is only one available account. It is the application’s responsibility to decide whether to ask the user to do the selection or not.
Note
To return an error within the completion parameter, please use
AccountSelection.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 selectAccount(_ context: AccountSelection.Context, completion handler: @escaping (Result<AccountSelection.Outcome, Error>) -> ())
Parameters
context
An object that contains information about the available accounts.
handler
A handler that the delegate method must call. The handler contains a single argument that represents either a successful result with the selected account or a failure result with an error.