Socket
Socket
Sign inDemoInstall

@connectedcars/jwtutils

Package Overview
Dependencies
114
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.6 to 1.0.7

sample/gcpserviceaccount/index.js

2

package.json
{
"name": "@connectedcars/jwtutils",
"version": "1.0.6",
"version": "1.0.7",
"description": "Zero dependency JWT encoding/decoding for Node",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -209,3 +209,3 @@ 'use strict'

let customJwtBody = Object.assign({}, jwtBody)
customJwtBody.iss += 'unknown@test.com'
customJwtBody.iss = 'unknown@test.com'
let jwt = JwtUtils.encode(rsaPrivateKey, jwtHeader, customJwtBody)

@@ -217,3 +217,3 @@ expect(

'to throw',
'Unknown issuer'
`Unknown issuer 'unknown@test.com'`
)

@@ -220,0 +220,0 @@ })

@@ -60,3 +60,3 @@ 'use strict'

if (!issuer) {
throw new JwtVerifyError('Unknown issuer')
throw new JwtVerifyError(`Unknown issuer '${body.iss}'`)
}

@@ -63,0 +63,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc