Closed hapnan closed 5 months ago
Hello @hapnan, your JSON Respons From server
has the options for startRegistration()
nested one level deep, off an "options"
property in the JSON object. Can you try calling startRegistration()
like this instead and see if that fixes your problem?
// Pass in the `options` property instead
attResp = await startRegistration(respon.options);
yes it is true that it was caused by the response server being nested one level deeper so I changed my response server to be more correct, thanks for helping, @MasterKale
Describe the issue
After receiving the response from generateRegistrationOptions and I put it in startRegistration, it issued an error
Reproduction Steps
I'm using nextjs(14.2.3) for everything from frontend and backend including @simplewebauthn/server to generate registration options and verify them.
Expected behavior
Can perform passkey registration normally
Code Samples + WebAuthn Options and Responses
Dependencies
SimpleWebAuthn Libraries
JSON Respons From server
startRegistration function
Additional context