How can I add support for passkeys to my iOS app?

Generated on 7/31/2024

1 search

To add support for passkeys to your iOS app, you can follow these steps:

  1. Automatic Passkey Upgrades: Implement automatic passkey upgrades to transition existing accounts from passwords to passkeys seamlessly. This can be done during the sign-in process without interrupting the user flow. The system checks if the account has a passkey and offers to create one if not. This is a progressive enhancement and won't always lead to a passkey being created, but when it does, it provides a smooth user experience.

  2. New Registration API: Use the new registration API to create passkeys automatically for eligible users the next time they sign into your app. This makes future sign-ins faster and more secure. If you've already adopted passkeys, adding automatic passkey registration just requires a single new parameter.

  3. Credential Managers: Credential managers can participate in automatic passkey upgrades and can now fill time-based verification codes, usernames, passwords, or one-time codes into any text field. To add support for these features, update your info plist and matching APIs as described in the authentication services documentation.

  4. Testing and Deployment: Like any feature, shipping passkey support involves learning, building, testing, and deploying. The ultimate goal is to make sign-in easier and improve account security. Ensure that your website's metadata is updated so that the personality of your website comes through in the passwords app.

For more detailed information, you can watch the session Streamline sign-in with passkey upgrades and credential managers.