.NET Standard 2.0
Install-Package JWT.Standard -Version
dotnet add package JWT.Standard --version
<PackageReference Include="JWT.Standard" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JWT.Standard --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: JWT.Standard,"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install JWT.Standard as a Cake Addin
#addin nuget:?package=JWT.Standard&version=

// Install JWT.Standard as a Cake Tool
#tool nuget:?package=JWT.Standard&version=
The NuGet Team does not provide support for this client. Please contact its maintainers for support.



Create Signature

            var password = Guid.NewGuid().ToString("N");

            var jwtp1 = new JWTPackage("yswenli", 
            "jwt test", 
            DateTimeHelper.Now.ToString(), DateTimeHelper.Now.ToString(), 

            var sign = jwtp1.GetBearerToken();
            var password = Guid.NewGuid().ToString("N");

            var jwtp1 = new JWTPackage<User>(new User()
                Id = "1",
                Name = "yswenli",
                Role = "Admin"
            }, 180, password);

            var sign = jwtp1.GetBearerToken();


            JWTPackage jwtp2 = null;

                jwtp2 = JWTPackage.Parse(sign, password);
            catch (IllegalTokenException iex)
            catch (TokenExpiredException tex)
            catch (SignatureVerificationException sex)
            catch (Exception ex)

            if (jwtp2 != null)
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on JWT.Standard:

Repository Stars
SAEA.Socket is a high-performance IOCP framework TCP based on dotnet standard 2.0; Src contains its application test scenarios, such as websocket,rpc, redis driver, MVC WebAPI, lightweight message server, ultra large file transmission, etc. SAEA.Socket是一个高性能IOCP框架的 TCP,基于dotnet standard 2.0;Src中含有其应用测试场景,例如websocket、rpc、redis驱动、MVC WebAPI、轻量级消息服务器、超大文件传输等
Version Downloads Last updated 40 8/5/2022 29 8/5/2022 34 8/5/2022 34 8/3/2022 32 8/3/2022 28 8/3/2022 74 6/24/2022 59 6/23/2022 65 6/23/2022 52 6/22/2022 821 8/6/2020 267 8/6/2020 275 8/6/2020

JWT.Standard a JWT (JSON Web Token) implementation for .NET
source site:https://github.com/cnwenli/JWT.Net