ID token
Definition
An ID token is a JWT issued by an OpenID Provider containing claims such as iss, sub, aud, exp, iat and nonce, which the relying party validates to establish the signed-in user's identity.
In practice
The relying party validates it locally: signature against the provider's JWKS with pinned algorithms, iss equal to the discovered issuer, aud containing its client id, exp in the future, and nonce matching the value it stored. Optional claims such as auth_time, acr and amr say how recently and how strongly the user authenticated.
An ID token is addressed to the client, not to APIs; sending it as a bearer token to a resource server is a common mistake, as is the opposite, accepting access tokens as login proof. It is consumed once at sign-in, after which the app keeps its own session.
Example
Payload: {"iss":"https://login.example.com","sub":"248289761001","aud":"my-app","nonce":"n-0S6_WzA2Mj","exp":1795600000}.