Skip to content

Commit

Permalink
Merge pull request #2 from elnaz/peer-dep
Browse files Browse the repository at this point in the history
fix(install): add hapi-auth-basic as a peer dependency
  • Loading branch information
elnaz committed Jul 26, 2016
2 parents ae95e80 + 7137742 commit ab523cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://travis-ci.org/elnaz/hapi-tiny-auth.svg)](https://travis-ci.org/elnaz/hapi-tiny-auth)

Just enough authentication to make an API private. This [Hapi](http://hapijs.com/) plugin will allow only one set of configured credentials to access any of the API's endpoints.
Just enough authentication to make an API private. This [Hapi](http://hapijs.com/) plugin will allow only one set of configured credentials to access any of the API's endpoints. Must be used with [hapi-auth-basic](https://github.com/hapijs/hapi-auth-basic).

## Install

Expand All @@ -18,6 +18,7 @@ const Hapi = require('hapi');
const server = new Hapi.Server();

server.register([
require('hapi-auth-basic'),
{
register: require('hapi-tiny-auth'),
options: {
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"url": "https://github.com/elnaz/hapi-tiny-auth/issues"
},
"homepage": "https://github.com/elnaz/hapi-tiny-auth#readme",
"peerDependencies": {
"hapi-auth-basic": ">=3.x"
},
"devDependencies": {
"chai": "^3.0.0",
"eslint": "^1.9.0",
Expand Down

0 comments on commit ab523cb

Please sign in to comment.