<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.18.0" />

System.IdentityModel.Tokens.Jwt.JwtConstants

public static class JwtConstants
Constants for Json Web tokens.
public const string DirectKeyUseAlg = "dir"

JWE header alg indicating a shared symmetric key is directly used as CEK.

public const string HeaderType = "JWT"

Short header type.

public const string HeaderTypeAlt = "http://openid.net/specs/jwt/1.0"

Long header type.

public const string JsonCompactSerializationRegex = "^[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]*$"

JWS - Token format: 'header.payload.signature'. Signature is optional, but '.' is required.

public const string JweCompactSerializationRegex = "^[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]*\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+$"

JWE - Token format: 'protectedheader.encryptedkey.iv.cyphertext.authenticationtag'.

public const string TokenType = "JWT"

Short token type.

public const string TokenTypeAlt = "urn:ietf:params:oauth:token-type:jwt"

Long token type.