Skip to content
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

Newer versions broken on wrangler #89

Open
svaraborut opened this issue Jan 22, 2025 · 0 comments
Open

Newer versions broken on wrangler #89

svaraborut opened this issue Jan 22, 2025 · 0 comments

Comments

@svaraborut
Copy link

On versions 3.x.x and on latter versions 2 (the last I've found working is 2.2.1) the function verify is broken. More specifically the internal call to crypto.subtle.verify yields:

[TypeError: Failed to execute 'verify' on 'SubtleCrypto': 3rd argument is not instance of ArrayBuffer, Buffer, TypedArray, or DataView.] {
  code: 'ERR_INVALID_ARG_TYPE'
}

This is due to the signature being a Uint8Array.buffer. When converted to a Uint8Array it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant