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

hawk

Package Overview
Dependencies
Maintainers
8
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hawk - npm Package Compare versions

Comparing version 9.0.1 to 9.0.2

14

lib/server.js

@@ -380,3 +380,3 @@ 'use strict';

id: bewitParts[0],
exp: parseInt(bewitParts[1], 10),
exp: bewitParts[1],
mac: bewitParts[2],

@@ -400,8 +400,2 @@ ext: bewitParts[3] || ''

// Check expiration
if (bewit.exp * 1000 <= now) {
throw Object.assign(Utils.unauthorized('Access expired'), { bewit });
}
// Fetch Hawk credentials

@@ -448,2 +442,8 @@

// Check expiration
if (parseInt(bewit.exp, 10) * 1000 <= now) {
throw Object.assign(Utils.unauthorized('Access expired'), { bewit });
}
// Successful authentication

@@ -450,0 +450,0 @@

{
"name": "hawk",
"description": "HTTP Hawk Authentication Scheme",
"version": "9.0.1",
"version": "9.0.2",
"repository": "git://github.com/mozilla/hawk",

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

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