webauthn-with-amazon-cognito
webauthn-with-amazon-cognito copied to clipboard
ERR_OSSL_UNSUPPORTED on crypto.verify
Having got this setup and running, I find when the lambda actually runs to verify a passkey, it fails with the error
Error: error:1E08010C:DECODER routines::unsupported
at Verify.verify (node:internal/crypto/sig:230:24)
at validateAssertionSignature (file:///var/task/index.mjs:61:22)
at Runtime.handler (file:///var/task/index.mjs:27:42)
at Runtime.handleOnceNonStreaming (file:///var/runtime/index.mjs:1173:29) {
library: 'DECODER routines',
reason: 'unsupported',
code: 'ERR_OSSL_UNSUPPORTED'
}
Having looked into other implementations of webauthn, it seems surprising that no consideration of the different algorithms that are used is included in this code demo.