Closed jnbooth closed 2 years ago
Can't explain the issue so far, since crypto.createPublicKey
has been around since Node 11.6.0.
It should work on Node14 and in fact we run our unit and integration tests on Node14 and all okay.
You're also using TypeScript? Which version? Should be at least 4. Also use a sufficiently high version of @types/node
otherwise TypeScript might not know about crypto.createPublicKey
yet. (Not sure this matter, might matter if you TSC with skipLibCheck: false
)
BTW I notice you're using a default import, which this library doesn't offer, so I would have expected this message:
import verify from 'aws-jwt-verify';
^^^^^^
SyntaxError: The requested module 'aws-jwt-verify' does not provide an export named 'default'
Maybe that's just your example, otherwise try this: import { JwtRsaVerifier, CognitoJwtVerifier } from 'aws-jwt-verify';
Hi @jnbooth, any update from your side?
@jnbooth , following up on the above inquiry, could you update when you can please?
Closing because of inactivity, feel free to open a new issue
What are the steps to reproduce this issue?
What happens?
What versions of software are you using?
"node": 14
"aws-jwt-verify": 1.0.3, and also tried version 1.0.0