* Generate a SHA256 hash of the payload using the secret * to authenticate with Hydro * @param {string} body
(body)
| 75 | * @param {string} body |
| 76 | */ |
| 77 | generatePayloadHmac(body) { |
| 78 | return crypto.createHmac('sha256', this.secret).update(body).digest('hex') |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * Publish a single event to Hydro |