-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReferenceError: crypto is not defined #54
Comments
EDIT: removed useless misleading comment |
no ...wait ...there is something more fishy ....your whole crypto modules is not defined ...that strange ...what does it do if you start node in the terminal and you simply enter "crypto" in the prompt? On mine, I get the Crypto object back, what about yours? |
Perhaps it has also something to do with the bundling of your app... |
Thanks for your response. You are right, thats strange. As I read, since node 19 crypto should be globally available. |
weird ...but I'm afraid I don't really know what's going on. Thanks for the workaround. |
crypto in node is not available in globals, used the module crypto. |
@xkid1 I beg to differ: https://nodejs.org/docs/latest-v22.x/api/globals.html#crypto_1 Well, it's weird. Good thing @rkreienbuehl found a workaround.
|
I have setup
@passwordless-id/webauthn
and want to use theserver
as described in the docs to verify the authentication withserver.verifyAuthentication(...)
. Sadly, I get the following error:Is there anything I missed?
I use
node
versionv20.10.0
and@passwordless-id/webauthn
versionv1.6.1
.The text was updated successfully, but these errors were encountered: