Skip to content

Commit

Permalink
Update README authentication example
Browse files Browse the repository at this point in the history
Hi,
in the example on the README there was an extra parameter when showing how to register the [`hapi-auth-basic`] plugin.

Leaving that parameter there would result in an error (`AssertionError [ERR_ASSERTION]: options must be an object`).
  • Loading branch information
p16 authored Jun 13, 2018
1 parent 1e0ecd1 commit 44baee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ const start = async () => {
return { isValid, credentials };
};

server.auth.strategy('simple', 'basic', 'required', { validate });
server.auth.strategy('simple', 'basic', { validate });

// Configure route with authentication

Expand Down

0 comments on commit 44baee9

Please sign in to comment.