From 0f518b76b0f8b3b88a8e4dffd4693448627c77e9 Mon Sep 17 00:00:00 2001 From: Olivier Jansen Date: Fri, 1 Aug 2025 15:53:30 +0200 Subject: [PATCH] Fix "Error: no data" troubleshooting Fix the "Error: no data" troubleshooting by renaming "authenticator.credentialPublicKey", which is outdated, to "credential.publicKey" --- docs/packages/server.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/packages/server.md b/docs/packages/server.md index a456da2..0f2f816 100644 --- a/docs/packages/server.md +++ b/docs/packages/server.md @@ -564,9 +564,9 @@ To fix this, massage the `Binary` public key bytes into an instance of `Uint8Arr ```js const verification = await verifyAuthenticationResponse({ // ... - authenticator: { + credential: { // ... - credentialPublicKey: new Uint8Array(credentialPublicKey.buffer), + publicKey: new Uint8Array(credentialPublicKey.buffer), }, }); ```