jsonwebtoken
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -6,2 +6,6 @@ # Change Log | ||
## 6.1.0 - 2016-04-27 | ||
- verify unsigned tokens ([ec880791c10ed5ef7c8df7bf28ebb95c810479ed](https://github.com/auth0/node-jsonwebtoken/commit/ec880791c10ed5ef7c8df7bf28ebb95c810479ed)) | ||
## 6.0.1 - 2016-04-27 | ||
@@ -8,0 +12,0 @@ |
{ | ||
"name": "jsonwebtoken", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "JSON Web Token implementation (symmetric and asymmetric)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -33,3 +33,2 @@ # jsonwebtoken [![Build Status](https://secure.travis-ci.org/auth0/node-jsonwebtoken.png)](http://travis-ci.org/auth0/node-jsonwebtoken) | ||
* `audience` | ||
* `subject` | ||
* `issuer` | ||
@@ -36,0 +35,0 @@ * `jwtid` |
@@ -96,6 +96,8 @@ var Joi = require('joi'); | ||
var claim = options_to_payload[key]; | ||
if (typeof options[key] !== 'undefined' && typeof payload[claim] !== 'undefined') { | ||
throw new Error('Bad "options.' + key + '" option. The payload already has an "' + claim + '" property.'); | ||
if (typeof options[key] !== 'undefined') { | ||
if (typeof payload[claim] !== 'undefined') { | ||
throw new Error('Bad "options.' + key + '" option. The payload already has an "' + claim + '" property.'); | ||
} | ||
payload[claim] = options[key]; | ||
} | ||
payload[claim] = options[key]; | ||
}); | ||
@@ -102,0 +104,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80179
37
1148
257