hapi-auth-jwt2-example
npm i hapi-auth-jwt2-example

hapi-auth-jwt2-example

🔒 Example Hapi.js app using hapi-auth-jwt2 with Cookies & Redis (hosted on Heroku) with tests!

by dwyl

7.1.3 (see all)License:ISCTypeScript:Not Found
npm i hapi-auth-jwt2-example
Readme

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!

Downloads/wk

6

GitHub Stars

22

LAST COMMIT

6yrs ago

MAINTAINERS

1

CONTRIBUTORS

3

OPEN ISSUES

1

OPEN PRs

0
VersionTagPublished
7.1.3
latest
6yrs ago
No alternatives found
No tutorials found
Add a tutorial