prepareInterface(forPasskeyRegistration:)
Prepare the view controller to show user interface for registering a new passkey.
Declaration
func prepareInterface(forPasskeyRegistration registrationRequest: any ASCredentialRequest)Parameters
- registrationRequest:
The passkey registration request.
Discussion
The system calls this method when the user selects your extension to create a passkey. Your app and extension must declare the key ProvidesPasskeys with value YES in the ASCredentialProviderExtensionCapabilities dictionaries of their information property lists to be available for the user to select. The system presents your extension’s authentication user interface before creating the passkey.
Call the context’s completeRegistrationRequest(using:completionHandler:) method with the created passkey credential. Alternatively, if an error occurs, call cancelRequest(withError:), using ASExtensionErrorDomain as the error domain and an appropriate error code from ASExtensionError.Code.
See Also
Selecting a credential
prepareCredentialList(for:)prepareCredentialList(for:requestParameters:)prepareOneTimeCodeCredentialList(for:)prepareInterfaceToProvideCredential(for:)provideCredentialWithoutUserInteraction(for:)performWithoutUserInteractionIfPossible(passkeyRegistration:)ASCredentialServiceIdentifierASCredentialRequestASPasswordCredentialRequestASOneTimeCodeCredentialRequestASAuthorizationPublicKeyCredentialRegistrationRequestASPasskeyCredentialRequestASPasskeyCredentialRequestParameters