feathers-authentication
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -42,6 +42,10 @@ 'use strict'; | ||
var VALID_KEYS = ['algorithm', 'expiresIn', 'notBefore', 'audience', 'issuer', 'jwtid', 'subject', 'noTimestamp', 'header', 'exp', 'nbf', 'aud', 'sub', 'iss']; | ||
var settings = (0, _lodash2.default)({ jwtid: (0, _v2.default)() }, options.jwt); | ||
var settings = (0, _lodash2.default)({}, options.jwt); | ||
var secret = options.secret; | ||
if (!(payload.jti || settings.jwtid)) { | ||
settings.jwtid = (0, _v2.default)(); | ||
} | ||
return new Promise(function (resolve, reject) { | ||
@@ -48,0 +52,0 @@ debug('Creating JWT using options', settings); |
{ | ||
"name": "feathers-authentication", | ||
"description": "Add Authentication to your FeathersJS app.", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"homepage": "https://github.com/feathersjs/feathers-authentication", | ||
@@ -6,0 +6,0 @@ "main": "lib/", |
156072
1200