• SUCCESS
  • FAILURE
  • LOGS
  • HUMAN

How to simulate passkey transactions with your AI

Connect Hanko to your AI client to run end-to-end authentication tests. Your agent handles the handshake and signing logic for you.

Ask AI about this page

Short answer

How can I simulate passkey transactions with my AI?

Your AI uses Hanko to initiate a transaction request and then finalize the signature once the passkey is verified. This lets you test how your app handles sensitive, cryptographically signed actions. You'll see the full authentication lifecycle in your chat.

Testing outcomes

What you get from a simulation

The results of the passkey lifecycle run.

SUCCESS

Signed transaction complete

The AI finishes the handshake. You get a confirmed, signed payload ready for your backend.

FAILURE

Auth error caught

The AI identifies where the passkey handshake failed. You see exactly which step in the lifecycle broke.

LOGS

Full lifecycle trace

The AI provides a step-by-step record of the initiation and finalization process for your debugging.

HUMAN

Manual check required

If the passkey requires a physical biometric check you haven't automated, the AI will stop and wait for you.

The workflow

What your AI does when the request arrives.

The AI manages the technical heavy lifting of the passkey protocol.

  1. Start the handshake

    The AI triggers the initial request to set up the transaction context.

    passkey_transaction_init
  2. Monitor state

    The agent tracks the status while the passkey challenge is being processed.

    passkey_transaction_init
  3. Finalize signature

    Once the passkey is verified, the AI closes the loop to complete the action.

    passkey_transaction_finalize
  4. Validate payload

    The AI confirms the final signed data matches the expected transaction parameters.

    passkey_transaction_finalize

Try it

Copy these to start.

Use these prompts to kick off a simulation.

Starting points

These are opening lines. Swap out the specific user or transaction details for your own test cases.

Hanko Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_FOAninCZae9duJcms78Myb9CbNaXDk54ffuUq1dU/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Hanko capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "hanko-passkey-auth-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_FOAninCZae9duJcms78Myb9CbNaXDk54ffuUq1dU/mcp"
    }
  }
}
Copy into chat04
  • Simulate a passkey transaction for a user updating their email in my app.

  • Run a test passkey transaction using the Hanko connector for a high-value transfer.

  • Initiate a passkey-signed transaction to test my new authentication flow.

  • Finalize the pending passkey transaction that was just started.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Hanko once, then ask.

One connection gives your AI access to these tools. Your credentials stay encrypted and secure.

Connect Hanko to your AI

FAQ

How this task behaves

  • 01

    Can the AI bypass the actual passkey biometric check?

    No. The AI can trigger the protocol and manage the data, but it cannot spoof a physical biometric signature.

  • 02

    Does the AI store my passkey credentials?

    No. The AI only interacts with the tools to initiate and finalize transactions; it does not manage or store your private keys.

  • 03

    Can I use this to test failed authentication attempts?

    Yes. You can prompt the AI to attempt transactions that should fail based on your test parameters.

  • 04

    Will the AI automatically send the signed transaction to my server?

    No. The AI performs the transaction within the context of the tools. You must tell it to send the resulting data elsewhere.

  • 05

    Can the AI create new passkeys?

    No. The available tools are limited to initiating and finalizing transactions.

  • More questions about Hanko? The Connector page answers them. See everything the Hanko Connector can do

Connect Hanko to Claude, Cursor, ChatGPT & more