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

Microsoft.IdentityModel.Tokens.SecurityTokenInvalidTypeException

This exception is thrown when the token type ('typ' header claim) of a JWT token is invalid.
public string InvalidType { get; set; }

Gets or sets the invalid type that created the validation exception.

Initializes a new instance of the SecurityTokenInvalidTypeException class.

public SecurityTokenInvalidTypeException(string message)

Initializes a new instance of the SecurityTokenInvalidTypeException class.

public SecurityTokenInvalidTypeException(string message, Exception innerException)

Initializes a new instance of the SecurityTokenInvalidTypeException class.

Initializes a new instance of the SecurityTokenInvalidTypeException class.