@kofile/jwt-client
Advanced tools
Comparing version 3.0.1 to 4.0.0
@@ -65,3 +65,3 @@ const jsonwebtoken = require('jsonwebtoken') | ||
return { | ||
id: this._userId, | ||
userId: this._userId, | ||
tenantId: this._tenantId, | ||
@@ -68,0 +68,0 @@ ort: this._ort, |
@@ -1,1 +0,1 @@ | ||
{"name":"@kofile/jwt-client","version":"3.0.1","description":"A simple JWT reader","repository":"https://github.com/kofile/jwt-client","author":"Evan Sherwood <evan@sherwood.io>","license":"MIT","main":"index.js","files":["index.js","JwtError.js"],"dependencies":{"clone":"^2.1.1","jsonwebtoken":"^8.0.1"},"devDependencies":{"@whizark/cz-cli":"^0.4.0","ava":"^0.22.0","commitizen":"^2.9.6","coveralls":"^2.13.1","cz-conventional-changelog":"^2.0.0","husky":"^0.13.4","lint-staged":"^3.6.0","nyc":"^11.1.0","prettier-standard":"^6.0.0","ramda":"^0.25.0","semantic-release":"^8.0.3","snazzy":"^7.0.0","standard":"^10.0.3"},"lint-staged":{"*.js":["prettier-standard","git add"]},"scripts":{"precommit":"lint-staged","commit":"git-cz","lint":"standard | snazzy","test":"nyc ava","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"nyc":{"include":["index.js","JwtError.js"]}} | ||
{"name":"@kofile/jwt-client","version":"4.0.0","description":"A simple JWT reader","repository":"https://github.com/kofile/jwt-client","author":"Evan Sherwood <evan@sherwood.io>","license":"MIT","main":"index.js","files":["index.js","JwtError.js"],"dependencies":{"clone":"^2.1.1","jsonwebtoken":"^8.0.1"},"devDependencies":{"@whizark/cz-cli":"^0.4.0","ava":"^0.22.0","commitizen":"^2.9.6","coveralls":"^2.13.1","cz-conventional-changelog":"^2.0.0","husky":"^0.13.4","lint-staged":"^3.6.0","nyc":"^11.1.0","prettier-standard":"^6.0.0","semantic-release":"^8.0.3","snazzy":"^7.0.0","standard":"^10.0.3"},"lint-staged":{"*.js":["prettier-standard","git add"]},"scripts":{"precommit":"lint-staged","commit":"git-cz","lint":"standard | snazzy","test":"nyc ava","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"nyc":{"include":["index.js","JwtError.js"]}} |
@@ -70,7 +70,8 @@ # @kofile/jwt-client | ||
// validate that `id` and `ort` are not null or undefined | ||
// validate that `userId` and `ort` are not null or undefined | ||
// | ||
// - throws a custom JwtError if a key is null or undefined | ||
// - returns true if validations pass | ||
client.validate(['id', 'ort']) | ||
// - pass in the keys of the public API, **not** internal structure | ||
client.validate(['userId', 'ort']) | ||
``` |
4891
12
77