Open waggyman opened 11 months ago
Apologies for the delay in replying, have not been monitoring.
Have you tried sending a request with a blank list of existing credentials?
{
"challenge": "T1xCsnxM2DNL2KdK5CLa6fMhD7OBqho6syzInk_n-Uo",
"allowCredentials": [],
"timeout": 1800000,
"userVerification": "required",
"rpId": "credential-manager-app-test.glitch.me"
}
It feels like it cannot find the credentials in the allowCredentials
array.
Take a look at https://simplewebauthn.dev/docs/packages/server#1-generate-authentication-options on how to create a responses that is more compliant.
Spec here https://www.w3.org/TR/webauthn-2/#dictdef-publickeycredentialdescriptor
DESCRIPTION
I forked this project because I want to use it in my ionic project (using capacitor 5). Actually it's working well on startRegistration method. It show me the Biometric Pop Up.
After registering passkey and store it in my server.
I want to authenticate with this flow:
{ "challenge": "generatedString", "allowCredentials": [ { "id": "same as the register passkey response" } ], "rpId": "my domain", "userVerification": "required" }