hapi-auth-jwt2-example

7.1.3 • Public • Published

hapi-auth-jwt2 example

A functional example Hapi.js app demonstrating hapi-auth-jwt2 authentication using Redis (hosted on Heroku) with tests!

Build Status Test Coverage Code Climate Dependency Status

bitHound Score Node.js Version NPM Version HAPI 15.0.3 devDependency Status

Environment Variables

To run this you will need to add an environment variable for your JWT_SECRET and REDISCLOUD_URL:

export JWT_SECRET=ItsNoSecretBecauseYouToldEverybody
export REDISCLOUD_URL=redis://rediscloud:OhEJvSgna@pub-redis-10689.eu-west-1-2.1.ec2.garantidata.com:10689

Note: you will need to set up your own Redis to use the code in this example in your project. if you're new to Redis check out our quick start guide: https://github.com/docdis/learn-redis

If you have any questions, please ask! Join the chat at https://gitter.im/dwyl/chat we are here to help!

Package Sidebar

Install

npm i hapi-auth-jwt2-example

Weekly Downloads

11

Version

7.1.3

License

ISC

Last publish

Collaborators

  • nelsonic