MCPcopy Index your code
hub / github.com/github/docs / generatePayloadHmac

Method generatePayloadHmac

lib/hydro.js:77–79  ·  view source on GitHub ↗

* Generate a SHA256 hash of the payload using the secret * to authenticate with Hydro * @param {string} body

(body)

Source from the content-addressed store, hash-verified

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

Callers 2

publishMethod · 0.95
hydro.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected