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

@connectedcars/jwtutils

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@connectedcars/jwtutils - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

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

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

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

'to throw',
'Unknown audience'
`Unknown audience 'https://host/oauth/token'`
)

@@ -240,3 +240,3 @@ })

'to throw',
'Unknown pubkey id for this issuer'
`Unknown pubkey id '3' for this issuer`
)

@@ -253,3 +253,3 @@ })

'to throw',
'Signature verification failed with alg RS256'
`Signature verification failed with alg 'RS256'`
)

@@ -256,0 +256,0 @@ })

@@ -143,3 +143,3 @@ const express = require('express')

statusCode: 401,
data: 'Unknown pubkey id for this issuer'
data: `Unknown pubkey id '2' for this issuer`
})

@@ -146,0 +146,0 @@ })

@@ -73,3 +73,5 @@ 'use strict'

if (!pubkey) {
throw new JwtVerifyError('Unknown pubkey id for this issuer')
throw new JwtVerifyError(
`Unknown pubkey id '${header.kid}' for this issuer`
)
}

@@ -79,3 +81,3 @@

throw new JwtVerifyError(
`Signature verification failed with alg ${header.alg}`
`Signature verification failed with alg '${header.alg}'`
)

@@ -86,3 +88,3 @@ }

if (!auds.some(aud => audiences.includes(aud))) {
throw new JwtVerifyError('Unknown audience')
throw new JwtVerifyError(`Unknown audience '${auds.join(',')}'`)
}

@@ -89,0 +91,0 @@

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