@feathersjs/authentication
Advanced tools
Comparing version 1.4.1 to 2.0.0
@@ -27,5 +27,9 @@ const Debug = require('debug'); | ||
]; | ||
const settings = merge({ jwtid: uuidv4() }, options.jwt); | ||
const settings = merge({}, options.jwt); | ||
const { secret } = options; | ||
if (!(payload.jti || settings.jwtid)) { | ||
settings.jwtid = uuidv4(); | ||
} | ||
return new Promise((resolve, reject) => { | ||
@@ -32,0 +36,0 @@ debug('Creating JWT using options', settings); |
{ | ||
"name": "@feathersjs/authentication", | ||
"description": "Add Authentication to your FeathersJS app.", | ||
"version": "1.4.1", | ||
"version": "2.0.0", | ||
"homepage": "https://github.com/feathersjs/authentication", | ||
@@ -81,3 +81,3 @@ "main": "lib/", | ||
"mongodb": "^2.2.29", | ||
"nsp": "^2.6.1", | ||
"nsp": "^3.0.0", | ||
"passport-strategy": "^1.0.0", | ||
@@ -84,0 +84,0 @@ "primus": "^7.0.0", |
Sorry, the diff of this file is too big to display
138943
931