Skip to content

Commit

Permalink
readme tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
mreinstein committed May 4, 2018
1 parent a9817fa commit 63fcf08
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ This module provides a function to handle this validation.

### usage

arguments
* `cert_url` full url of the certificate to verify (from HTTP request header named `signaturecertchainurl`)
* `signature` signature of the request (from HTTP request header named `signature`)
* `requestRawBody` full body string from POST request
* `callback` (optional) completion function. has 1 argument which indicates error. falsey when verification passes

You may include a callback function, in the standard node error argument-first format:

```javascript
Expand All @@ -40,9 +46,3 @@ const verifier = require('alexa-verifier')

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


* `cert_url` full url of the certificate to verify (from HTTP request header named `signaturecertchainurl`)
* `signature` signature of the request (from HTTP request header named `signature`)
* `requestRawBody` full body string from POST request
* `callback` completion function. has 1 argument which indicates error. falsey when verification passes

0 comments on commit 63fcf08

Please sign in to comment.