Linger.AspNetCore.Jwt.Contracts 1.1.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Linger.AspNetCore.Jwt.Contracts --version 1.1.0
                    
NuGet\Install-Package Linger.AspNetCore.Jwt.Contracts -Version 1.1.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="Linger.AspNetCore.Jwt.Contracts" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Linger.AspNetCore.Jwt.Contracts" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Linger.AspNetCore.Jwt.Contracts" />
                    
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 Linger.AspNetCore.Jwt.Contracts --version 1.1.0
                    
#r "nuget: Linger.AspNetCore.Jwt.Contracts, 1.1.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 Linger.AspNetCore.Jwt.Contracts@1.1.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=Linger.AspNetCore.Jwt.Contracts&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Linger.AspNetCore.Jwt.Contracts&version=1.1.0
                    
Install as a Cake Tool

Linger.AspNetCore.Jwt.Contracts

Core interfaces and abstractions for JWT (JSON Web Token) authentication and authorization in ASP.NET Core applications.

Features

  • Standardized interfaces for JWT token generation and validation
  • Support for refresh token functionality
  • Clean separation between contracts and implementation
  • JWT configuration options model
  • Extension methods for service registration

Supported Frameworks

  • .NET 8.0+
  • .NET 9.0+

Installation

dotnet add package Linger.AspNetCore.Jwt.Contracts

Core Interfaces

IJwtService

public interface IJwtService
{
    /// <summary>
    /// Creates a JWT token
    /// </summary>
    /// <param name="userId">User identifier</param>
    /// <returns>Token object containing the access token</returns>
    Task<Token> CreateTokenAsync(string userId);
}

IRefreshableJwtService

public interface IRefreshableJwtService : IJwtService
{
    /// <summary>
    /// Refreshes a JWT token
    /// </summary>
    /// <param name="token">Token object containing access token and refresh token</param>
    /// <returns>New token object</returns>
    Task<Token> RefreshTokenAsync(Token token);
}
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 is compatible.  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 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 (1)

Showing the top 1 NuGet packages that depend on Linger.AspNetCore.Jwt.Contracts:

Package Downloads
Linger.AspNetCore.Jwt

A comprehensive JWT authentication implementation for ASP.NET Core applications. Provides JWT token generation, validation, and refresh token functionality with blacklisting support. Integrates seamlessly with ASP.NET Core authentication services.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.0-preview 102 3/29/2026
1.1.0 118 2/4/2026
1.0.3-preview 112 1/9/2026
1.0.2-preview 112 1/8/2026
1.0.1 228 11/24/2025
1.0.1-preview 311 11/13/2025
1.0.0 322 11/12/2025
1.0.0-preview2 210 11/6/2025
1.0.0-preview1 212 11/5/2025
0.9.9 200 10/16/2025
0.9.8 205 10/14/2025
0.9.7-preview 192 10/13/2025
0.9.6-preview 178 10/12/2025
0.9.5 188 9/28/2025
0.9.4-preview 201 9/25/2025
0.9.3-preview 226 9/22/2025
0.9.1-preview 332 9/16/2025
0.9.0-preview 158 9/12/2025
0.8.5-preview 229 8/31/2025
0.8.4-preview 353 8/25/2025
Loading failed