Claim

noun

say it: “KLAYM” /kleɪm/

One fact about the user inside a token, such as their id, role or when the token expires.

What is Claim?

Claim — One fact about the user written inside a token: their id (sub), name, role, or when the token expires (exp). The server trusts a claim because the token is signed.

{ "sub": "42", "name": "Sam Rivera", "role": "Admin", "exp": 1798761600 }

In a sentence

  • “The token's role claim says Admin, so the API lets them delete products.”

Level: Journeyman · More Web Development terms at this level

Updated