Skip to content

Minimal Node.js server showcasing the Hanko Passkey API

Notifications You must be signed in to change notification settings

teamhanko/passkeys-example-node

Repository files navigation

Hanko Passkeys SDK: Node.js Example

Setup

  1. Install dependencies with npm i
  2. Run:
PASSKEYS_TENANT_ID=<your tenant id> PASSKEYS_SECRET_API_KEY=<your secret api key> node ./index.js

Then go to localhost:3000 and try it out!

The example has two accounts you can try:

  • John Doe / password123
  • Omar Doe / SHUSHforTHISisAsecret

Log in with one, then click on "register passkey". You'll be prompted to select a passkey to add to the account you're logged in with.

About

Minimal Node.js server showcasing the Hanko Passkey API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published