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

flora-auth-jwt

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flora-auth-jwt - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

12

index.js

@@ -38,6 +38,10 @@ 'use strict';

api.log.trace(err);
return callback(new AuthenticationError('Expired token received for JSON Web Token validation'));
const e = new AuthenticationError('Expired token received for JSON Web Token validation');
e.code = 'ERR_TOKEN_EXPIRED';
return callback(e);
} else if (err) {
api.log.trace(err);
return callback(new AuthenticationError('Invalid signature received for JSON Web Token validation'));
const e = new AuthenticationError('Invalid signature received for JSON Web Token validation');
e.code = 'ERR_INVALID_TOKEN_SIGNATURE';
return callback(e);
}

@@ -89,4 +93,6 @@

if (ev.request._auth || !options.credentialsRequired) return next();
return next(new AuthenticationError('No authorization token was found'));
const e = new AuthenticationError('No authorization token was found');
e.code = 'ERR_MISSING_TOKEN';
return next(e);
});
};
{
"name": "flora-auth-jwt",
"version": "0.0.1",
"version": "0.1.0",
"description": "JSON Web Token authentication for Flora",

@@ -25,10 +25,10 @@ "main": "index.js",

"dependencies": {
"jsonwebtoken": "^7.2.1",
"flora-errors": "^0.7.0"
"jsonwebtoken": "^8.2.0",
"flora-errors": "^0.8.0"
},
"devDependencies": {
"eslint": "^3.10.2",
"eslint-config-airbnb-base": "^11.0.0",
"eslint-plugin-import": "^2.2.0"
"eslint": "^4.19.0",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-import": "^2.9.0"
}
}

@@ -25,1 +25,6 @@ flora-auth-jwt

```
License
-------
[MIT](LICENSE)

Sorry, the diff of this file is not supported yet

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