Open cz-cs opened 5 days ago
That's strange. It looks like the public key is invalid. Can you also reproduce that error in the playground ? Is it possible that the publicKey value was somehow truncated or altered?
In the playground, a button was added to validate the public key, in the lower section
Sorry for the delay, I've been caught up in school work, but I can reproduce the error in the playground. I registered for a credential and the browser returns this:
However when I click the button to verify the key, it prompts saying it's not valid. Console logs this
I also tried it on Chrome with same credential, same results. What is interesting is that on my iPhone, on Safari with iOS 18.1, the playground prints that the same public key is valid.
Maybe it's an issue with Windows or my TPM chip?
What is interesting is that on my iPhone, on Safari with iOS 18.1, the playground prints that the same public key is valid.
😮 Do I understand you correctly? The same identical public key value is marked INAVLID
in Windows/Chrome and VALID
in iPhone/Safari?! ...now that's really really weird stuff. After all, it's the same browser code verifying the key.
Or did I understand you incorrectly, and you generated different public keys on Windows (the broken one) and on iPhone (the working one)?
Also, my Windows generates ES256 keys. I wonder why yours generates RS256 keys. 🤔 Is it an older Windows version or so?
Yes! I used the same public key and encryption, and it returned different results on both machines
I keep my Windows updated, so I doubt that's the problem here. This is my Windows version:
I'm having issues with trying to use verifyAuthentication
Server-side uses SvelteKit.
Client-side:
Server-side:
Console logs:
CredentialInfo for the passkey being used converted back to JSON data from database:
I'm using the latest version of the library, Windows 11, with Bun 1.1.29. Registration works okay, and my database stores the credentials correctly.
Any ideas why this doesn't work? Thank you