Skip to content
This repository has been archived by the owner on Apr 20, 2019. It is now read-only.

Commit

Permalink
Update readme for hapi 8
Browse files Browse the repository at this point in the history
  • Loading branch information
geek committed Feb 18, 2015
1 parent 4fc37fa commit 9a4c3b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ authentication. The scheme requires the following options:

```javascript
var Hapi = require('hapi');
var HapiHawk = require('hapi-auth-hawk');
var server = new Hapi.Server();
server.connection();

Expand All @@ -36,7 +37,7 @@ var getCredentials = function (id, callback) {
return callback(null, credentials[id]);
};

server.register('hapi-auth-hawk', function (err) {
server.register(HapiHawk, function (err) {

server.auth.strategy('default', 'hawk', { getCredentialsFunc: getCredentials });
});
Expand Down

0 comments on commit 9a4c3b2

Please sign in to comment.