Contact salesSign in
Current article

Passkeys APIs and SDKs: Simplifying Secure Implementation

August 13, 2023
Last Updated:
June 24, 2024
Justin Soong
Implementing Passkeys Best Practices

Passkeys are making waves throughout the web, with large consumer applications (TikTok, Kayak) adopting passkeys as a way to streamline their customer's authentication experience but, more importantly, allow users to opt-in to an un-phishable and secure authentication factor.

There are a few implementation considerations before implementing passkeys, and we've broken them down for you here:

  • How are your existing customers going to opt into passkeys?
  • Which customer touch points and channels will you introduce passkeys on?
  • What engineering expertise do you need in order to deploy and implement passkeys?

How are your existing customers going to opt-in to passkeys?

Educating customers on the benefits of passkeys is crucial in building adoption. And choosing the best place to prompt customers on enrolling into passkeys is important.

Ideally, passkeys should always be enrolled when the identity of the customer is highly trusted. This is mostly always at the point of a successful Two/Multi-Factor Authentication (MFA) step.

Allowing enrollment outside an MFA step creates a security risk because typical session or token-based mechanisms lose their assurance over time, as users leave laptops or phones unlocked or have devices with malware that can steal sessions/tokens. If there are no other mitigations placed, a bad actor can maliciously enroll their own keys, potentially locking your good customer out, thus reducing the effectiveness of passkeys.

With the combination of a compelling prompt to educate customers on the benefits of passkeys and a step directly part of a successful MFA challenge, this is the best practice to onboard a customer to use passkeys.

Passkeys Opt-in flow after a successful MFA challenge

Using Authsignal's Hosted UI flows and client SDK's ensures that you'd be implementing Passkeys in the most secure way and offer best practice enrolment and opt-in flows. Authsignal also allows you to configure prompts through the no-code rules engine to target your rollout to specific users and specific points of their customer journeys.

Authsignal Passkey Enrollment Prompt Setting

Which customer touch points and channels will you introduce passkeys on?

Passkeys are a very versatile authentication factor that utilizes the WebAuthn APIs and FIDO2 standards. Passkeys can be used on many channels, including supported web browsers and native mobile devices.

Being able to deploy passkeys across all channels, both web and mobile, is the recommended approach, giving customers a ubiquitous experience whether they interact with your business on the web or the mobile device. Passkeys are being supported in more devices and browsers. For up-to-date passkey device support, check out this list here.

Android and iOS native passkey prompts
Android and iOS native passkey prompts

The most common touch point to allow passkeys is for Sign-in use cases because passkeys meet the definition of Multi-factor Authentication (MFA). You can use passkeys as the only authentication factor bypassing the need to use usernames and passwords or additional factors.

It's important to note that although this is the case, Passkey should still be considered as an alternative form of authentication as opposed to being a sole and primary authenticator. Giving your customers options will allow for more seamless account recovery processes.

The other use case and touch point you could use passkeys for is for step-up authentication and as a 2FA/MFA step. Passkeys are great not only on Sign-in but at critical points in your app. This could be placed just before your customer authorizes a high-value transaction or initiates a high-risk action.

We've provided an excellent Passkeys Demo site that demonstrates using passkeys both on Sign Up/Sign In and as a form of step-up within your customer experience.

What engineering expertise do you need in order to deploy and implement passkeys?
Typical passkeys architecture
Typical passkeys architecture

A typical architecture requires a WebAuthn back-end service/server that is hosted and accessible from the public internet. This service is central to the administration of passkeys exposing lifecycle APIs for you to manage passkeys. The full lifecycle includes the creation, verification, and deletion of passkeys. A team with infrastructure and back-end engineering capabilities is essential to build and maintain a highly reliable Webauthn API service.

Authsignal provides a WebAuthn backend as part of a cloud-hosted solution. This simplifies your engineering requirements and expertise required.

Once the WebAuthn back-end service is available, front-end SDKs are required to integrate with the WebAuthn service for enrollment, verification, and management operations.

Authsignal provides client side libraries and SDK's to integrate front-end passkeys flows, check them out here:

Alternatively, if front-end engineering expertise is not available, Authsignal's hosted UI has full functionality out of the box and to best practices.

Passkeys are an amazing leap forward, giving customers a great experience. Authsignal provides a full end-to-end solution for passkeys baking in all of the best practices mentioned in this article.

Getting started with passkeys is easy. Just sign up with Authsignal and get building.

Talk to an expertDemo PasskeysView docs
Article Categories
You might also like
Adaptive MFA for Auth0: Customize MFA UX to reduce consumer friction without upgrading your plan
In this blog post, we will dive deeper into how you can fine-tune the MFA user experience with only some minor tweaks to your integration code.
myGov Passkeys Implementation: Passkeys and MFA for Australia Government Services
Explore myGov's passkey implementation, enhancing Australia's government digital security amid rising cybercrime. Learn about best practices for implementing passkeys.
WhatsApp for 2FA and MFA: Enhancing Customer Experience and Reducing Costs with WhatsApp OTP
High SMS costs in Asia-Pacific and the prevalence of WhatsApp are driving enterprises to adopt WhatsApp OTPs for user verification, offering a cost-effective and reliable solution.

Secure your customers’ accounts today with Authsignal.