Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jwt-js

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jwt-js - npm Package Compare versions

Comparing version 0.2.0 to 0.2.2

5

lib/tokenizer.js

@@ -91,4 +91,3 @@ 'use strict'

var joseSignature = tokenParts[2],
derSignatureBuffer = sigFormatter.joseToDer(joseSignature, 'ES256'),
derSignatureArray = derSignatureBuffer.toJSON().data
derSignatureBuffer = sigFormatter.joseToDer(joseSignature, 'ES256')

@@ -99,3 +98,3 @@ // prepare the public key

// verify the token
var verified = publicKeyObject.verify(signingInputHash, derSignatureArray)
var verified = publicKeyObject.verify(signingInputHash, derSignatureBuffer)

@@ -102,0 +101,0 @@ return verified

9

package.json
{
"name": "jwt-js",
"version": "0.2.0",
"version": "0.2.2",
"description": "node.js library for encoding, decoding, and verifying JSON Web Tokens (JWTs)",

@@ -43,3 +43,8 @@ "main": "index.js",

"elliptic": "^5.1.0"
}
},
"files": [
"lib/",
"*.js",
"README.md"
]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc