Australian flagJoin us at the FIDO seminar in Melbourne – Feb 7, 2025!

How should frontend applications be modified to support passkeys?

Vincent Delitz

Vincent

Created: January 8, 2025

Updated: January 9, 2025

Do you want to learn more?

Read full blog post

How Should Frontend Applications Be Modified to Support Passkeys?#

Supporting passkeys in a frontend application requires both UI updates and WebAuthn API integration to enable seamless user experiences. Here’s what to consider:

frontend modifications support passkeys

1. Implement Passkey Options in the UI#

  • Add clear buttons for passkey actions, such as:
    • "Continue with Passkey" for login.
    • "Create a Passkey" during onboarding.
    • "Manage Passkeys" in account settings.
  • Use intuitive icons and text to explain the benefits of passkeys to users.

2. Integrate the WebAuthn API#

  • Use the Web Authentication API to handle passkey creation and authentication flows.
    • For passkey creation: Call navigator.credentials.create().
    • For passkey authentication: Use navigator.credentials.get().
  • Ensure the API calls are compatible across major browsers and devices.

3. Handle Cross-Device Compatibility#

  • Design flows to handle device-specific prompts for passkey creation and authentication.
  • Provide fallback options for devices or browsers that do not support passkeys.
Substack Icon

Subscribe to our Passkeys Substack for the latest news, insights and strategies.

Subscribe

4. Provide Error Feedback#

  • Implement robust error-handling logic to display helpful messages if a passkey creation or login attempt fails.
  • Use generic error messages to avoid exposing account enumeration risks.

5. Ensure Accessibility#

  • Follow accessibility best practices for UI elements related to passkeys.
  • Ensure passkey buttons and prompts are usable with screen readers and other assistive technologies.

6. Test the Frontend Thoroughly#

  • Test the passkey flows across various browsers and devices to ensure consistency.
  • Use virtual authenticators during development for thorough testing of edge cases.

These updates ensure a smooth, secure, and user-friendly implementation of passkeys in your frontend application, driving higher adoption and satisfaction.

Do you want to learn more?

Read full blog post

Share this article


LinkedInTwitterFacebook

Enjoyed this read?

🤝 Join our Passkeys Community

Share passkeys implementation tips and get support to free the world from passwords.

🚀 Subscribe to Substack

Get the latest news, strategies, and insights about passkeys sent straight to your inbox.


We provide UI components, SDKs and guides to help you add passkeys to your app in <1 hour

Start for free