@connectedcars/jwtutils
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"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 @@ |
55349
29