7.1.3 • Published 9 years ago
hapi-auth-jwt2-example v7.1.3
hapi-auth-jwt2 example
A functional example Hapi.js app demonstrating hapi-auth-jwt2 authentication using Redis (hosted on Heroku) with tests!
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