Sudomimus.Token 4.0.0

dotnet add package Sudomimus.Token --version 4.0.0
                    
NuGet\Install-Package Sudomimus.Token -Version 4.0.0
                    
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="Sudomimus.Token" Version="4.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sudomimus.Token" Version="4.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Sudomimus.Token" />
                    
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 Sudomimus.Token --version 4.0.0
                    
#r "nuget: Sudomimus.Token, 4.0.0"
                    
#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 Sudomimus.Token@4.0.0
                    
#: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=Sudomimus.Token&version=4.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Sudomimus.Token&version=4.0.0
                    
Install as a Cake Tool

Sudomimus.Token

C# SDK for parsing and verifying Sudomimus access and refresh JWTs.

Mirrors the @sudomimus/token TypeScript SDK. Use it wherever you receive tokens issued by Sudomimus Connect (/redeem), Session (/refresh), or Native (/direct-issue/steam-ticket) — typically a game's authoritative backend that validates incoming access tokens.

using Sudomimus.Token;

var verifier = new TokenVerifier(async (applicationAnchor, keyId, ct) =>
{
    // Fetch/cache Session JWKS and return the PEM key matching keyId.
    return await myJwksCache.ResolveAsync(applicationAnchor, keyId, ct);
});

var token = await verifier.VerifyAccessTokenAsync(accessTokenJwt);
Console.WriteLine($"{token.Body.Subject} ({token.Body.SessionId})");

Sudomimus.Token is independent of Sudomimus.Native — install whichever you need.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.
  • net8.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Sudomimus.Token:

Package Downloads
Sudomimus.Connect

HTTP client for the Sudomimus Connect API — establish authentication inquiries, poll status, redeem tokens, and fetch application metadata. Redeem responses carry the per-claim consent view.

Sudomimus.Session

HTTP client for the Sudomimus Session API — user info, claim state, refresh-token rotation, introspection, logout, and session revocation.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.0 150 8/1/2026
3.3.0 121 7/18/2026
3.2.0 136 7/5/2026
3.1.0 136 7/1/2026
3.0.0 141 6/22/2026
1.2.0 172 6/3/2026
1.1.0 144 6/1/2026
1.0.0 133 5/28/2026
0.0.1 113 5/21/2026