CommonNetFuncs.Web.Jwt 3.8.20

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

CommonNetFuncs.Web.Jwt

License Build NuGet Version nuget

This lightweight project contains helper methods for several common functions required by applications.

Contents


JwtManager

Provides an authentication mechanism that issues JWT tokens when the correct credentials are provided.

JwtManager Usage Examples

<details> <summary><h3>Usage Examples</h3></summary>

Authenticate

Authenticate credentials and issue a JWT token if credentials are valid.

public class JwtToken // This is a class present within the CommonNetFuncs.Web.Jwt package
{
  public string? Token { get; set; }
  public string? RefreshToken { get; set; }
  public DateTime? JwtExpireTime { get; set; }
}

JwtToken? jwtToken = Authenticate("user-name", "password", "user-name-secret", "password-secret", "production", "key-secret", TimeSpan.FromMinutes(30), TimeSpan.FromMinutes(5), "issuer", "email", "audience");
// All "-secret" values should be secrets in the host application and are validated against the user submitted values.
// Issuer, Email, and Audience parameters are all optional depending on the info you want to include in the JWT token

</details>

Product Compatible and additional computed target framework versions.
.NET 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 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.

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.2 0 12/2/2025
4.0.1 121 11/27/2025
4.0.0 140 11/23/2025
3.8.20 38 12/1/2025
3.8.18 385 11/20/2025
3.8.17 386 11/19/2025
3.8.16 378 11/17/2025
3.8.13 266 11/10/2025
3.8.4 186 10/9/2025
3.7.17 191 9/11/2025
3.7.16 174 9/11/2025
3.7.13 181 9/8/2025
3.7.0 297 8/18/2025
3.6.27 166 8/18/2025
3.6.26 184 8/14/2025
3.6.25 182 8/13/2025
3.6.24 167 8/12/2025
3.6.19 144 7/28/2025
3.6.18 377 7/25/2025
3.6.1 184 7/14/2025
3.6.0 205 7/14/2025
3.5.3 173 7/10/2025
3.5.0 176 7/7/2025
3.4.23 194 6/26/2025
3.4.21 164 6/26/2025
3.4.20 168 6/25/2025
3.4.15 196 6/18/2025
3.4.13 270 6/13/2025
3.4.8 320 6/11/2025
3.4.2 173 6/2/2025
3.4.1 126 5/30/2025
3.4.0 132 5/30/2025
3.3.16 182 5/28/2025
3.3.11 173 5/18/2025
3.3.10 267 5/13/2025
3.3.0 193 4/29/2025
3.2.26 217 4/8/2025
3.2.24 198 4/1/2025
3.2.22 261 3/12/2025
3.2.21 200 3/11/2025
3.2.15 157 2/24/2025
3.2.14 155 2/20/2025
3.2.13 142 2/13/2025
3.2.11 140 2/10/2025
3.2.9 140 2/4/2025
3.2.5 126 1/27/2025
3.2.4 144 1/21/2025
3.2.1 143 1/7/2025
3.2.0 134 12/19/2024
3.1.2 182 12/13/2024
3.1.1 132 12/10/2024
3.1.0 150 12/6/2024
3.0.0 148 12/3/2024
2.1.3 141 12/3/2024
2.1.0 132 12/2/2024
2.0.5 154 11/26/2024
2.0.2 147 11/18/2024
2.0.1 144 11/15/2024
2.0.0 147 11/14/2024
1.0.47 143 11/14/2024
1.0.42 185 11/12/2024
1.0.40 153 11/12/2024
1.0.37 147 11/4/2024
1.0.31 147 10/31/2024
1.0.28 148 10/25/2024
1.0.26 194 10/18/2024
1.0.25 135 10/17/2024
1.0.24 115 10/17/2024
1.0.20 148 10/11/2024
1.0.19 144 10/11/2024
1.0.18 129 10/8/2024
1.0.17 129 9/27/2024
1.0.16 159 9/27/2024
1.0.14 151 9/23/2024
1.0.13 151 9/18/2024
1.0.12 159 9/18/2024
1.0.11 149 9/18/2024
1.0.10 170 9/11/2024
1.0.9 148 9/11/2024
1.0.8 167 9/11/2024
1.0.7 152 9/11/2024
1.0.1 169 9/4/2024
1.0.0 156 9/2/2024