Sign an HS256 token on your server so a browser client can authenticate without ever receiving your private API key.
{
"sub": "your-public-key",
"exp": now + 3600
}
→ eyJhbGciOiJIUzI1NiJ9…
No matching guide. Use an HS256 JWT library in any server-side stack and include the required sub and exp claims.
Compare short-lived JWT credentials with a server-side API proxy, and keep private keys out of public code.