Sign and Verify Messages with HMAC Using the Web Crypto API
Web Crypto is a cryptography API available in modern browsers and Cloudflare Workers that can be used to sign messages and verify message signatures using Hashed-Based Message Authentication Codes (HMAC).
Source: bradyjoslin.com