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

Commit

Permalink
fix require() in API.js
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Oct 23, 2020
1 parent 58ba9c8 commit cf105e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions API.md
Expand Up @@ -63,7 +63,7 @@ Server code:

```js
const Http = require('http');
const Hawk = require('@hapi/hawk');
const Hawk = require('hawk');


// Credentials lookup function
Expand Down Expand Up @@ -120,7 +120,7 @@ Client code:

```js
const Request = require('request');
const Hawk = require('@hapi/hawk');
const Hawk = require('hawk');


// Client credentials
Expand Down Expand Up @@ -350,7 +350,7 @@ Server code:

```js
const Http = require('http');
const Hawk = require('@hapi/hawk');
const Hawk = require('hawk');


// Credentials lookup function
Expand Down Expand Up @@ -386,7 +386,7 @@ Http.createServer(handler).listen(8000, 'example.com');
Bewit code generation:

```js
const Hawk = require('@hapi/hawk');
const Hawk = require('hawk');


// Client credentials
Expand Down

0 comments on commit cf105e0

Please sign in to comment.