hapi-auth-jwt2-example
v7.1.3
Published
A functional example Hapi.js app demonstrating hapi-auth-jwt2 authentication using Redis (hosted on Heroku) with tests!
Downloads
16
Maintainers
Readme
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:[email protected]: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