passwordless-id / webauthn

Webauthn / passkeys helper library to make your life easier. Client side, server side and demo included.
https://webauthn.passwordless.id
MIT License
436 stars 51 forks source link

[BUG]- VerifyAuthentication not working as expected #28

Closed davappler closed 1 year ago

davappler commented 1 year ago

When I call the verifyAuthentication function with the given parameters, it does not work as expected.

server.verifyAuthentication(
    resp,
    credentialKey,
    expected
  );

It displays an error => An error occurred: crypto is not defined.

Can anyone help me solve this issue?

I am guessing there is a missing dependency injection somewhere in the codebase.

dagnelies commented 1 year ago

Hi. As stated in the readme, Node 19+ is required. Updating it should solve the issue.

davappler commented 1 year ago

Thanks a lot, it worked 🚀