<PackageReference Include="Microsoft.Identity.Client" Version="4.84.2-preview" />

Microsoft.Identity.Client.Internal.JsonWebToken

class JsonWebToken
public const long JwtToAadLifetimeInSeconds = 600

public JsonWebToken(ICryptographyManager cryptographyManager, string clientId, string audience)

public JsonWebToken(ICryptographyManager cryptographyManager, string clientId, string audience, IDictionary<string, string> claimsToSign, bool appendDefaultClaims = false)

public JsonWebToken(ICryptographyManager cryptographyManager, string clientId, string audience, string claimsToSignJson, bool appendDefaultClaims = false)

public string Sign(X509Certificate2 certificate, bool sendX5C, bool useSha2AndPss)