<PackageReference Include="Microsoft.Identity.Client" Version="4.85.1" />

Microsoft.Identity.Client.UserAssertion

public sealed class UserAssertion
public string Assertion { get; }

Gets the assertion.

public string AssertionType { get; }

Gets the assertion type.

public UserAssertion(string jwtBearerToken)

Constructor from a JWT assertion. For other assertion types (SAML), use the other constructor #ctor

public UserAssertion(string assertion, string assertionType)

Constructor of a UserAssertion specifying the assertionType in addition to the assertion