Skip to main content
Hanko Passkey API adds support for passkeys for existing users of your platform. It’s designed to be used together with your own auth system, and can be used without any other Hanko product. Users cannot create an account through the Passkey API. Instead, the Passkey API enables your users to add passkeys to their existing account (they have to be logged in first) or to use them to secure payment transactions.
Please note that the Passkey API is not a full authentication solution — it’s only intended to be used together with another authentication system that doesn’t support passkeys natively.If you need a complete, open source authentication solution, check out Hanko.
The Passkey API is designed to be used both from your backend and frontend:
  • Some requests (e.g. logging in) can be made to the Passkey API directly from the frontend. These do not require a secret API key.
  • All other requests that require a secret API key (e.g. registering a new passkey) should only be made from your backend. You should never leak that secret API key to the client.

Next steps

Set up a Passkey API project

Set up a Passkey API project on Hanko Cloud.

Example implementation

A Node.js example showcasing implementation of the Passkey API without any SDK.

JavaScript/TypeScript SDK

If you’re already using JS/TS for your backend, you can use our SDK to easily integrate the Passkey API.

Next.js with NextAuth

If you’re using NextAuth for handling auth in your Next.js app, you can use our provider to easily add passkey support.