Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

floca

Package Overview
Dependencies
Maintainers
2
Versions
229
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

floca - npm Package Compare versions

Comparing version 5.4.5 to 5.4.6

5

lib/DefaultConfigurer.js

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

2

lib/RestMaker.js
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": [

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