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

Microsoft.IdentityModel.Tokens.SecurityTokenInvalidOperationException

Throw this exception when a method call is invalid for the object's current state.

Initializes a new instance of the SecurityTokenInvalidOperationException class.

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

public SecurityTokenInvalidOperationException(string message, Exception innerException)

Initializes a new instance of the SecurityTokenInvalidOperationException 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 SecurityTokenInvalidOperationException class.