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.3.0 to 4.3.1

example/real_world_example_using_redis_on_heroku.js

7

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

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

"devDependencies": {
"aguid": "^1.0.3",
"hapi": "^8.4.0",

@@ -38,2 +39,3 @@ "codeclimate-test-reporter": "0.0.4",

"pre-commit": "^1.0.6",
"redis": "^0.12.1",
"tap-spec": "^3.0.0",

@@ -51,3 +53,4 @@ "tape": "^4.0.0"

"codeclimate": "CODECLIMATE_REPO_TOKEN=1f00e2891b3e24ed11bb9b22a8a4793c55c5470d60e859389a0c3dd24220df46 ./node_modules/codeclimate-test-reporter/bin/codeclimate.js < ./coverage/lcov.info",
"start":"node example/server.js"
"start": "node example/server.js",
"report":"open coverage/lcov-report/index.html"
},

@@ -54,0 +57,0 @@ "pre-commit": [

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

[![Code Climate](https://codeclimate.com/github/ideaq/hapi-auth-jwt2/badges/gpa.svg "No Nasty Code")](https://codeclimate.com/github/ideaq/hapi-auth-jwt2)
[![bitHound Score](https://www.bithound.io/github/ideaq/hapi-auth-jwt2/badges/score.svg)](https://www.bithound.io/github/ideaq/hapi-auth-jwt2)
[![Dependency Status](https://david-dm.org/ideaq/hapi-auth-jwt2.svg "Dependencies Checked & Updated Regularly (Security is Important!)")](https://david-dm.org/ideaq/hapi-auth-jwt2)

@@ -153,2 +154,19 @@ [![Node.js Version](https://img.shields.io/node/v/hapi-auth-jwt2.svg?style=flat "Node.js 10 & 12 and io.js latest both supported")](http://nodejs.org/download/)

### Production-ready Example using Redis?
Redis is *perfect* for storing session data that needs to be checked
on every authenticated request.
If you are unfamiliar with Redis or anyone on your team needs a refresher,
please checkout: https://github.com/docdis/learn-redis
The ***code*** is in: **example/real_world_example_using_redis_on_heroku.js**
(snappy name, right?)
and corresponding ***tests*** in **test/real_world_example.js**
feel free to inspect, use, or ask additional questions if unclear.
Having a more real-world example was *seconded* by [@manonthemat](https://github.com/manonthemat) see:
[hapi-auth-jwt2/issues/9](https://github.com/ideaq/hapi-auth-jwt2/issues/9)
## Documentation

@@ -190,11 +208,3 @@

<!--
# Production Ready Example Code
redis://rediscloud:OhEJHaKRrjWvSgna@pub-redis-10689.eu-west-1-2.1.ec2.garantiadata.com:10689
-->
=======
This feature was requested in: [issues/29](https://github.com/ideaq/hapi-auth-jwt2/issues/29)
- - -

@@ -201,0 +211,0 @@

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