@zerotier/ztchooks-ts

0.1.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @zerotier/ztchooks-ts

Weekly Downloads

0

Version

0.1.1

License

MPL-2.0

Unpacked Size

16.7 kB

Total Files

6

Last publish

Collaborators

  • laduke
  • ztgrant
  • zerotieradmin