token lifetime
How long a token stays valid, recorded in its exp claim, after which the API must reject it.
In more detail
Validation normally allows a small clock skew between servers. Short lifetimes limit the damage from a stolen token.
Related terms
- JSON Web Token — A compact signed token made of three base64url parts separated by dots: a header, a payload of claims and a signature.
- bearer token — A token that grants access to whoever presents it, sent as Authorization: Bearer <token>, without any further proof of identity.
Taught in
- The Options Pattern: Strongly Typed Configuration — Modern .NET Core, C# & Enterprise Microservices
- Authentication: JWTs and Claims — Modern .NET Core, C# & Enterprise Microservices