Crypto Edge
    Preparing search index...

    Function verify

    • Verify an HMAC signature using the Web Crypto API.

      Parameters

      Returns Promise<boolean>

      true if the signature is valid.

      const valid = await verify({
      key,
      data: payload,
      signature: sig,
      });