Skip to content

Commit

Permalink
tweak readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mreinstein committed May 24, 2021
1 parent ba33cff commit 671748e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,16 @@ arguments
You may include a callback function, in the standard node error argument-first format:

```javascript
const verifier = require('alexa-verifier')
import verifier from 'alexa-verifier'


verifier(cert_url, signature, requestRawBody, function callbackFn(er) {
verifier(cert_url, signature, requestRawBody, function callbackFn (er) {
// if er, something went wrong
})
```

Ommiting a callback function returns a promise:
```javascript
const verifier = require('alexa-verifier')


```javascript
const verifyPromise = verifier(cert_url, signature, requestRawBody)
```

0 comments on commit 671748e

Please sign in to comment.