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

Microsoft.IdentityModel.Tokens.SecurityTokenException

Represents a security token exception.

Initializes a new instance of the SecurityTokenException class.

public SecurityTokenException(string message)

Initializes a new instance of the SecurityTokenException class with a specified error message.

public SecurityTokenException(string message, Exception innerException)

Initializes a new instance of the SecurityTokenException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Initializes a new instance of the SecurityTokenException class.