Soenneker.Extensions.Strings.Jwt 4.0.232

Prefix Reserved
There is a newer version of this package available.
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
                    
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.232" />
                    
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.232" />
                    
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.232
                    
#r "nuget: Soenneker.Extensions.Strings.Jwt, 4.0.232"
                    
#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.232
                    
#: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.232
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.Strings.Jwt&version=4.0.232
                    
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.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
Loading failed

Update dependency Soenneker.Extensions.String to 4.0.733 (#782)