// glossary

JWT (JSON Web Token)

A JWT is a base64-encoded, signed JSON payload commonly used as a stateless session token.

A JWT has three dot-separated parts: header.payload.signature. Header declares the algorithm (HS256, RS256, ES256). Payload is JSON with claims (sub, iat, exp, custom fields). Signature proves the JWT wasn't tampered with — verified by your server using a shared secret (HS) or a public key (RS / ES).

Use cases: stateless auth (the JWT IS the session — no server-side lookup), API tokens, OAuth access/ID tokens.

Common pitfalls: forgetting to verify the signature (treating the token as trusted just because it parses), using the alg=none vulnerability (rejected by good libraries since 2015), and not checking exp. The /tools/jwt-decoder page lets you inspect a token without uploading it anywhere — useful when debugging.

// shipping?

lrok gives your localhost a public HTTPS URL with a reserved subdomain on the free plan. Useful when this term comes up in a real integration:

$ curl -fsSL https://lrok.io/install.sh | sh
$ lrok http 3000

← all glossary terms