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 8.5.0 to 8.6.0

2

example/server.js

@@ -1,2 +0,2 @@

const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const hapiAuthJWT = require('../lib/');

@@ -3,0 +3,0 @@ const JWT = require('jsonwebtoken'); // used to sign our content

@@ -1,2 +0,2 @@

const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');

@@ -3,0 +3,0 @@ const people = { // our "users database"

'use strict';
const Boom = require('boom'); // error handling https://github.com/hapijs/boom
const Boom = require('@hapi/boom'); // error handling https://github.com/hapijs/boom
const assert = require('assert'); // use assert to check if options are set

@@ -5,0 +5,0 @@ const JWT = require('jsonwebtoken'); // https://github.com/docdis/learn-json-web-tokens

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

@@ -50,3 +50,3 @@ "main": "lib/index.js",

"dependencies": {
"boom": "^7.1.1",
"@hapi/boom": "^7.4.2",
"cookie": "^0.3.1",

@@ -59,3 +59,3 @@ "jsonwebtoken": "^8.1.0"

"eslint-plugin-prettier": "^3.0.0",
"hapi": "^18.0.0",
"@hapi/hapi": "^18.0.0",
"nyc": "^13.1.0",

@@ -62,0 +62,0 @@ "pre-commit": "^1.2.2",

@@ -49,3 +49,3 @@ # Hapi Auth using JSON Web Tokens (JWT)

```javascript
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');

@@ -52,0 +52,0 @@ const people = { // our "users database"

@@ -1,2 +0,2 @@

const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const secret = 'NeverShareYourSecret';

@@ -3,0 +3,0 @@

const test = require('tape');
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const JWT = require('jsonwebtoken');

@@ -4,0 +4,0 @@ const secret = 'NeverShareYourSecret';

@@ -1,2 +0,2 @@

const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const secret = 'NeverShareYourSecret';

@@ -3,0 +3,0 @@

const test = require('tape');
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const JWT = require('jsonwebtoken');

@@ -4,0 +4,0 @@ const secret = 'NeverShareYourSecret';

@@ -1,3 +0,3 @@

const Hapi = require('hapi');
const Boom = require('boom');
const Hapi = require('@hapi/hapi');
const Boom = require('@hapi/boom');

@@ -4,0 +4,0 @@ // for debug options see: http://hapijs.com/tutorials/logging

@@ -1,2 +0,2 @@

const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const secret = 'NeverShareYourSecret';

@@ -3,0 +3,0 @@

@@ -1,3 +0,3 @@

const Hapi = require('hapi');
const Boom = require('boom');
const Hapi = require('@hapi/hapi');
const Boom = require('@hapi/boom');

@@ -4,0 +4,0 @@ // for debug options see: http://hapijs.com/tutorials/logging

var test = require('tape');
var Hapi = require('hapi');
var Boom = require('boom');
var Hapi = require('@hapi/hapi');
var Boom = require('@hapi/boom');
var JWT = require('jsonwebtoken');

@@ -5,0 +5,0 @@

@@ -1,4 +0,4 @@

const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const secret = 'NeverShareYourSecret';
const Boom = require('boom');
const Boom = require('@hapi/boom');

@@ -5,0 +5,0 @@ // for debug options see: http://hapijs.com/tutorials/logging

const test = require('tape');
const JWT = require('jsonwebtoken');
const secret = 'NeverShareYourSecret';
const Boom = require('boom');
const Boom = require('@hapi/boom');

@@ -6,0 +6,0 @@ const server = require('./scheme-payload-server');

@@ -1,2 +0,2 @@

const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const secret = 'NeverShareYourSecret';

@@ -3,0 +3,0 @@

@@ -1,2 +0,2 @@

const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const secret = 'NeverShareYourSecret';

@@ -3,0 +3,0 @@

const test = require('tape');
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const JWT = require('jsonwebtoken');

@@ -4,0 +4,0 @@ const secret = 'NeverShareYourSecret';

const test = require('tape');
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const JWT = require('jsonwebtoken');

@@ -4,0 +4,0 @@ const secret = 'NeverShareYourSecret';

@@ -1,2 +0,2 @@

const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const secret = 'NeverShareYourSecret';

@@ -3,0 +3,0 @@

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