Soenneker.Extensions.Strings.Jwt 4.0.261

Prefix Reserved
dotnet add package Soenneker.Extensions.Strings.Jwt --version 4.0.261
                    
NuGet\Install-Package Soenneker.Extensions.Strings.Jwt -Version 4.0.261
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Extensions.Strings.Jwt" Version="4.0.261" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.Strings.Jwt" Version="4.0.261" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Extensions.Strings.Jwt" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Extensions.Strings.Jwt --version 4.0.261
                    
#r "nuget: Soenneker.Extensions.Strings.Jwt, 4.0.261"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Extensions.Strings.Jwt@4.0.261
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Extensions.Strings.Jwt&version=4.0.261
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.Strings.Jwt&version=4.0.261
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.261 73 9/30/2026
4.0.260 85 9/25/2026
4.0.259 89 9/25/2026
4.0.258 89 9/24/2026
4.0.257 79 9/24/2026
4.0.256 85 9/24/2026
4.0.255 108 9/16/2026
4.0.254 87 9/16/2026
4.0.253 87 9/16/2026
4.0.252 93 9/15/2026
4.0.251 90 9/13/2026
4.0.250 99 9/13/2026
4.0.249 92 9/13/2026
4.0.248 95 9/12/2026
4.0.247 90 9/12/2026
4.0.246 92 9/12/2026
4.0.245 99 9/12/2026
4.0.244 102 9/9/2026
4.0.243 98 9/8/2026
4.0.242 109 9/8/2026
Loading failed

Updated Soenneker.Extensions.String to 4.0.770