mirror of
https://github.com/zerotier/ztchooks-ts.git
synced 2026-05-22 16:29:35 -07:00
2948c2c94710ca2e19fb73b0052d082761631b85
Bumps the npm_and_yarn group with 1 update in the / directory: [picomatch](https://github.com/micromatch/picomatch). Updates `picomatch` from 2.3.1 to 2.3.2 - [Release notes](https://github.com/micromatch/picomatch/releases) - [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md) - [Commits](https://github.com/micromatch/picomatch/compare/2.3.1...2.3.2) --- updated-dependencies: - dependency-name: picomatch dependency-version: 2.3.2 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com>
ZTC Hooks TypeScript
ztchooks provides primitives for serializing and verifying hooks fired from ZeroTier Central
Webhook signatures from ZeroTier Central are in the HTTP header field: X-ZTC-Signature
Example:
const psk = "<your_pre_shared_key>"
const signature = "<hook_signature>"
const payload = "<hook payload>";
verifySignature(psk, signature, payload, Number.MAX_SAFE_INTEGER);
License
Copyright 2023 ZeroTier, Inc. All rights reserved. Licensed under the Mozilla Public License Version 2.0. See the LICENSE file for the full license text.
Languages
TypeScript
93.3%
JavaScript
6.7%