Soenneker.Extensions.Strings.Jwt
4.0.232
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Extensions.Strings.Jwt --version 4.0.232
NuGet\Install-Package Soenneker.Extensions.Strings.Jwt -Version 4.0.232
<PackageReference Include="Soenneker.Extensions.Strings.Jwt" Version="4.0.232" />
<PackageVersion Include="Soenneker.Extensions.Strings.Jwt" Version="4.0.232" />
<PackageReference Include="Soenneker.Extensions.Strings.Jwt" />
paket add Soenneker.Extensions.Strings.Jwt --version 4.0.232
#r "nuget: Soenneker.Extensions.Strings.Jwt, 4.0.232"
#:package Soenneker.Extensions.Strings.Jwt@4.0.232
#addin nuget:?package=Soenneker.Extensions.Strings.Jwt&version=4.0.232
#tool nuget:?package=Soenneker.Extensions.Strings.Jwt&version=4.0.232
Soenneker.Extensions.Strings.Jwt
String extension methods for inspecting and extracting data from JSON Web Tokens without unnecessary payload materialization.
Installation
dotnet add package Soenneker.Extensions.Strings.Jwt
Usage
using Soenneker.Extensions.Strings.Jwt;
DateTime? expiresUtc = jwt.ToJwtExpiration(logger);
ToJwtExpiration() decodes only the payload, reads an integer exp claim as Unix seconds, and returns a UTC DateTime. Missing segments, malformed Base64URL/JSON, a missing or non-integer exp, and out-of-range timestamps all return null. Unexpected exceptions are logged at Critical when a logger is supplied.
Payload segments larger than 1 MiB of encoded text are rejected to avoid large pooled allocations. Decoded payload bytes are cleared before the buffer is returned to the shared pool.
This method does not validate the JWT signature, issuer, audience, algorithm, or current expiration state. Use it only to inspect a token whose trust has been established elsewhere.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.Extensions.Arrays.Bytes (>= 4.0.66)
- Soenneker.Extensions.String (>= 4.0.733)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.255 | 50 | 9/16/2026 |
| 4.0.254 | 38 | 9/16/2026 |
| 4.0.253 | 37 | 9/16/2026 |
| 4.0.252 | 42 | 9/15/2026 |
| 4.0.251 | 81 | 9/13/2026 |
| 4.0.250 | 85 | 9/13/2026 |
| 4.0.249 | 79 | 9/13/2026 |
| 4.0.248 | 81 | 9/12/2026 |
| 4.0.247 | 79 | 9/12/2026 |
| 4.0.246 | 81 | 9/12/2026 |
| 4.0.245 | 86 | 9/12/2026 |
| 4.0.244 | 96 | 9/9/2026 |
| 4.0.243 | 91 | 9/8/2026 |
| 4.0.242 | 102 | 9/8/2026 |
| 4.0.241 | 95 | 9/7/2026 |
| 4.0.240 | 99 | 9/7/2026 |
| 4.0.239 | 93 | 9/7/2026 |
| 4.0.238 | 100 | 9/5/2026 |
| 4.0.237 | 97 | 9/4/2026 |
| 4.0.232 | 102 | 8/31/2026 |
Update dependency Soenneker.Extensions.String to 4.0.733 (#782)