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

hapi-auth-jwt2

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-auth-jwt2 - npm Package Compare versions

Comparing version 4.7.0 to 4.7.1

6

lib/index.js

@@ -33,2 +33,5 @@ // Load modules

} // JWT tokens in cookie: https://github.com/dwyl/hapi-auth-jwt2/issues/55
else if (request.headers.authorization) {
auth = request.headers.authorization;
}
else if (request.headers.cookie) {

@@ -41,5 +44,2 @@ var cookie = request.headers.cookie.replace(/token=/gi, '');

}
else {
auth = request.headers.authorization;
}
if (!auth && (request.auth.mode === 'optional' || request.auth.mode === 'try')) {

@@ -46,0 +46,0 @@ return reply.continue({ credentials: {} });

{
"name": "hapi-auth-jwt2",
"version": "4.7.0",
"version": "4.7.1",
"description": "Hapi.js Authentication Plugin/Scheme using JSON Web Tokens (JWT)",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -274,3 +274,3 @@ # Hapi Auth with JSON Web Tokens (JWT)

### Backgroun Reading
### Background Reading

@@ -277,0 +277,0 @@ + Wikipedia has a good intro (general): https://en.wikipedia.org/wiki/HTTP_cookie

@@ -23,3 +23,3 @@ var test = require('tape');

};
console.log(options);
server.inject(options, function(response) {

@@ -26,0 +26,0 @@ t.equal(response.statusCode, 401, "Invalid token should error!");

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