├── .gitignore ├── LICENSE ├── api └── users │ ├── model │ └── User.js │ ├── routes │ ├── authenticateUser.js │ ├── checkUser.js │ ├── createUser.js │ ├── getUsers.js │ └── updateUser.js │ ├── schemas │ ├── authenticateUser.js │ ├── checkUser.js │ ├── createUser.js │ └── updateUser.js │ └── util │ ├── token.js │ └── userFunctions.js ├── config.js ├── package.json ├── readme.md └── server.js /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-blog/hapi-jwt-authentication/HEAD/LICENSE -------------------------------------------------------------------------------- /api/users/model/User.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-blog/hapi-jwt-authentication/HEAD/api/users/model/User.js -------------------------------------------------------------------------------- /api/users/routes/authenticateUser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-blog/hapi-jwt-authentication/HEAD/api/users/routes/authenticateUser.js -------------------------------------------------------------------------------- /api/users/routes/checkUser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-blog/hapi-jwt-authentication/HEAD/api/users/routes/checkUser.js -------------------------------------------------------------------------------- /api/users/routes/createUser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-blog/hapi-jwt-authentication/HEAD/api/users/routes/createUser.js -------------------------------------------------------------------------------- /api/users/routes/getUsers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-blog/hapi-jwt-authentication/HEAD/api/users/routes/getUsers.js -------------------------------------------------------------------------------- /api/users/routes/updateUser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-blog/hapi-jwt-authentication/HEAD/api/users/routes/updateUser.js -------------------------------------------------------------------------------- /api/users/schemas/authenticateUser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-blog/hapi-jwt-authentication/HEAD/api/users/schemas/authenticateUser.js -------------------------------------------------------------------------------- /api/users/schemas/checkUser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-blog/hapi-jwt-authentication/HEAD/api/users/schemas/checkUser.js -------------------------------------------------------------------------------- /api/users/schemas/createUser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-blog/hapi-jwt-authentication/HEAD/api/users/schemas/createUser.js -------------------------------------------------------------------------------- /api/users/schemas/updateUser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-blog/hapi-jwt-authentication/HEAD/api/users/schemas/updateUser.js -------------------------------------------------------------------------------- /api/users/util/token.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-blog/hapi-jwt-authentication/HEAD/api/users/util/token.js -------------------------------------------------------------------------------- /api/users/util/userFunctions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-blog/hapi-jwt-authentication/HEAD/api/users/util/userFunctions.js -------------------------------------------------------------------------------- /config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-blog/hapi-jwt-authentication/HEAD/config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-blog/hapi-jwt-authentication/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-blog/hapi-jwt-authentication/HEAD/readme.md -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-blog/hapi-jwt-authentication/HEAD/server.js --------------------------------------------------------------------------------