library · inferred from evidence
jsonwebtoken
A library used for JSON Web Token (JWT) operations, including signing.
- Error: secretOrPrivateKey must be an asymmetric key when using RS256 (Vonage)
The SDK's privateKey option must be the actual key material, not a filesystem path: jsonwebtoken tries to sign with the literal "./private.key" string, which is not an asymmetric key. Fix: read the key file yourself and pass its contents -