LuaRocks.org had a security incident in September 2026. Read the incident report.

jsonwebtoken

JSON Web Tokens (HS256/384/512) in pure Lua, zero dependencies

$ luarocks install jsonwebtoken

Sign, verify and decode JWTs (RFC 7519) with a three-function
API. HMAC algorithms only — HS256, HS384 and HS512 — with the
SHA-2, base64url and JSON codecs built in, so nothing else needs
to be installed. Verification pins the algorithm to the caller's
choice (never the token header), compares signatures in constant
time, rejects alg=none, and validates exp/nbf with optional
leeway plus iss/aud/sub on request.

Versions

dev-1dev89 days ago0 downloads
0.1.1-188 days ago2 downloads
0.1.0-189 days ago3 downloads

Dependencies

lua >= 5.3

Manifests