New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jwt-identity

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jwt-identity - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

test/authenticate.test.js

5

CHANGELOG.md
# Change Log
## [1.1.0] - 2016-05-14
New features:
* Add `uiLang` claim to grant token.
## [1.0.0] - 2016-03-07
Initial release.

3

lib/config/grant-token.json

@@ -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 @@

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