jwt-identity
Advanced tools
Comparing version 1.0.0 to 1.1.0
# Change Log | ||
## [1.1.0] - 2016-05-14 | ||
New features: | ||
* Add `uiLang` claim to grant token. | ||
## [1.0.0] - 2016-03-07 | ||
Initial release. |
@@ -5,3 +5,4 @@ { | ||
"roles": true, | ||
"userName": false | ||
"userName": false, | ||
"uiLang": false | ||
}, | ||
@@ -8,0 +9,0 @@ "expiresIn": 30, |
@@ -84,2 +84,3 @@ 'use strict'; | ||
result.body.userName = body.userName === true; | ||
result.body.uiLang = body.uiLang === true; | ||
@@ -86,0 +87,0 @@ result.expiresIn = |
{ | ||
"name": "jwt-identity", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "JSON Web Token Authentication Middleware for Express.js", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "semistandard && node_modules/.bin/tape tests/*.js | tap-spec" | ||
"test": "semistandard && node_modules/.bin/tape 'test/**/*.js' | tap-spec" | ||
}, | ||
@@ -9,0 +9,0 @@ "author": { |
@@ -45,3 +45,4 @@ # jwt-identity | ||
roles: true, | ||
userName: false | ||
userName: false, | ||
uiLang: false | ||
}, | ||
@@ -163,2 +164,8 @@ expiresIn: 30, | ||
###### options.grantToken.body.uiLang | ||
Type: `Boolean` | ||
If `true`, the user's preferred UI language claim is included in the `grant_token` body and will be accessible through `req.identity.user.claims.uiLangs`. Defaults to `false`. | ||
##### options.grantToken.expiresIn | ||
@@ -244,2 +251,3 @@ | ||
* `{String} userName` - user's name | ||
* `{String} uiLang` - code of the user's preferred UI language | ||
* `{string} securityStamp` - current security stamp as provided by the user storage. Optional - it is required only if `options.refreshToken.body.securityStamp` is set to `true`. | ||
@@ -289,2 +297,3 @@ | ||
* `{String} userName` - the user's name | ||
* `{String} uiLang` - code of the user's preferred UI language | ||
* `{string} securityStamp` - the current security stamp as provided by the user storage. | ||
@@ -291,0 +300,0 @@ |
51047
18
1352
348