Closed rsquires closed 9 months ago
Interesting! What type of Authenticator is that you're using?
Need to have a look in the spec what we should be expecting. Is this per spec or is the particular Authenticator a bit idiosyncratic 😅
Hey, I was testing with Firefox on Windows 10 with the Windows Hello authenticator.
After a closer look I think we should add .toString("base64url")
after n
and e
to these lines:
Similar to how we do it for ES:
Wanna do that in your PR?
Friendly nudge :)
Doing it in #148
At least in my testing, the FIDO2 authentication always seems to fail. Peeking at the Lambda logs, I found the following:
With a little
console.log()
debugging, the type ofstoredCredential.jwk.n
isUint8Array
.Description of changes: This is more of hack, but ensuring the key data is a base64-encoded string seems to get everything back in order. I'm currently evaluating/prototyping with the
amazon-cognito-passwordless-auth
package, so I don't have enough time to find the true root cause, hence this being a draft PR. But, I still wanted to give you guys a heads up.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.