Soenneker.Extensions.Strings.Jwt
4.0.227
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Extensions.Strings.Jwt --version 4.0.227
NuGet\Install-Package Soenneker.Extensions.Strings.Jwt -Version 4.0.227
<PackageReference Include="Soenneker.Extensions.Strings.Jwt" Version="4.0.227" />
<PackageVersion Include="Soenneker.Extensions.Strings.Jwt" Version="4.0.227" />
<PackageReference Include="Soenneker.Extensions.Strings.Jwt" />
paket add Soenneker.Extensions.Strings.Jwt --version 4.0.227
#r "nuget: Soenneker.Extensions.Strings.Jwt, 4.0.227"
#:package Soenneker.Extensions.Strings.Jwt@4.0.227
#addin nuget:?package=Soenneker.Extensions.Strings.Jwt&version=4.0.227
#tool nuget:?package=Soenneker.Extensions.Strings.Jwt&version=4.0.227
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.
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.65)
- Soenneker.Extensions.String (>= 4.0.728)
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.279 | 0 | 10/14/2026 |
| 4.0.278 | 0 | 10/14/2026 |
| 4.0.276 | 25 | 10/14/2026 |
| 4.0.270 | 47 | 10/13/2026 |
| 4.0.269 | 76 | 10/12/2026 |
| 4.0.266 | 75 | 10/12/2026 |
| 4.0.265 | 85 | 10/12/2026 |
| 4.0.264 | 75 | 10/11/2026 |
| 4.0.263 | 80 | 10/11/2026 |
| 4.0.262 | 88 | 10/11/2026 |
| 4.0.261 | 88 | 9/30/2026 |
| 4.0.260 | 94 | 9/25/2026 |
| 4.0.259 | 97 | 9/25/2026 |
| 4.0.258 | 96 | 9/24/2026 |
| 4.0.257 | 89 | 9/24/2026 |
| 4.0.256 | 90 | 9/24/2026 |
| 4.0.255 | 114 | 9/16/2026 |
| 4.0.254 | 93 | 9/16/2026 |
| 4.0.253 | 94 | 9/16/2026 |
| 4.0.227 | 98 | 8/30/2026 |
Update dependency Soenneker.Extensions.Arrays.Bytes to 4.0.65 (#774)