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

Commit

Permalink
Merge pull request #15 from geek/master
Browse files Browse the repository at this point in the history
Update readme for hapi 8
  • Loading branch information
dannycoates committed Feb 18, 2015
2 parents 4fc37fa + 9a4c3b2 commit fb70390
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 fb70390

Please sign in to comment.