What is a JWT?

A JWT (JSON Web Token) is a compact, digitally signed token format used to represent claims — such as a user's identity or an agent's permissions — that a receiving system can verify without a database lookup.

A JWT has three base64url-encoded segments separated by dots: a header describing the signing algorithm, a payload of claims (subject, issuer, expiration, custom scopes), and a signature computed over the first two parts with a secret or private key. Because the signature is self-contained, a service can validate a JWT's authenticity and expiration locally in microseconds, which is why JWTs are the backbone of stateless authentication across microservices and API gateways. The tradeoff is that a JWT cannot be silently revoked before it expires — once issued, it is valid until its `exp` claim passes, so systems that need instant revocation pair JWTs with short lifetimes plus a refresh-token exchange, or a denylist for the rare emergency case. Signing algorithm choice matters too: `HS256` uses a shared secret while `RS256`/`ES256` use asymmetric keys, which lets a third party verify a token without ever holding the signing key.

In practice with Neotask

Neotask issues short-lived JWTs to authenticate Electron-to-gateway WS-RPC calls and to scope a session to a specific tenant, with the tenant ID pulled from the verified claim rather than trusted from the client. Access tokens expire quickly and are refreshed transparently so a long agent run never gets cut off mid-task by an expired token.

Related terms

Start free

Plans

Free

$0/mo

Download without a card and start for free.

Individual

$50/mo

The full personal agent platform for one person.

Enterprise

$200/mo

Multiple workspaces and capacity for larger teams.

Continue