// Sign JWT tokens with HS256 in the browser
Generate signed JWT tokens using HMAC-SHA256 (HS256) entirely in the browser via the Web Crypto API. Enter a JSON payload and a secret key to produce a valid token. Useful for testing authentication flows, mocking API responses, and understanding how JWTs work.