---
title: Connecting to a service with passkeys
framework: authenticationservices
role: sampleCode
role_heading: Sample Code
path: sample-code/authenticationservices/connecting-to-a-service-with-passkeys
---

# Connecting to a service with passkeys

Allow users to sign in to a service without typing a password.

## Overview

Overview note: This sample code project is associated with WWDC22 session 10092: Meet passkeys and WWDC21 session 10106: Move beyond passwords. Configure the sample code project To build and run this sample: Open the sample with Xcode 14 or later. Select the Shiny project. For the project’s target, select your team from the Team drop-down menu in the Signing & Capabilities pane to let Xcode automatically manage your provisioning profile. Add the Associated Domains capability using the “+ Capability” button in the same pane, and specify your domain with the webcredentials service. Ensure an apple-app-site-association (AASA) file is present on your domain in the .well-known directory, and that it contains an entry for this app’s App ID for the webcredentials service. In the AccountManager.swift file, replace all occurrences of example.com with the name of your domain.

## See Also

### Passkeys

- [Public-Private Key Authentication](authenticationservices/public-private-key-authentication.md)
- [Passkey use in web browsers](authenticationservices/passkey-use-in-web-browsers.md)
- [Performing fast account creation with passkeys](authenticationservices/performing-fast-account-creation-with-passkeys.md)
