-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
jsonwebtoken v9 verify function doesn't work in typescript #881
Comments
KeyObject is probably missing in browserify crypto |
It is better to rely on JWT modules made to be consumed in browser or generic javascript environments. You can discover such modules on jwt.io under "JavaScript" libraries. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I also had this error when I used node v 12.16.1 and jwt 9.0.0 I believe the error we saw refers to the there's a big change in the Originally (before this PR), this for jsonwebtoken v.8.5.1, its |
Node 15 implementation adds WebCrypto and CryptoKey What blocks jsonwebtoken from creating similar isCryptoKey and isKeyObject and test both? This library has been is much smaller package for its purpose and we like to keep using it instead of the alternatives. |
After upgrading
jsonwebtoken
to v9, React-Native app written in Typescript can't verify the JWT and throws an error[TypeError: right operand of 'instanceof' is not an object]
But in a JavaScript file run by
node
it works fine!The text was updated successfully, but these errors were encountered: