Comparing version 5.4.5 to 5.4.6
@@ -35,3 +35,6 @@ let path = require('path') | ||
acquireURI: '', // '/sys/request-token' | ||
algorithm: 'HS512' | ||
algorithm: 'HS512', | ||
defaultToken: null, | ||
decode: function ( token ) { return token }, | ||
checkValidity: function ( url, decoded ) { } | ||
}, | ||
@@ -38,0 +41,0 @@ ssl: { |
async function sendTokenBack ( uid, roles, options ) { | ||
let token = options.jwt.encode( | ||
{ issueDate: Date.now(), uid: uid, roles: roles }, | ||
options.jwtConfig.defaultToken || { issueDate: Date.now(), uid: uid, roles: roles }, | ||
options.jwtConfig.secret, | ||
@@ -5,0 +5,0 @@ options.jwtConfig.algorithm || 'HS512' |
{ | ||
"name": "floca", | ||
"version": "5.4.5", | ||
"version": "5.4.6", | ||
"description": "Enterprise-grade microservice solution for NodeJS", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75822
744