VerifySessionOptions

Options for SponsorkitServer.VerifySessionAsync: the target set your backend expects.

On this page

Options for SponsorkitServer.VerifySessionAsync: the target set your backend expects.

namespace Sponsorkit;

public sealed class VerifySessionOptions

Constructors#

MemberDescription
VerifySessionOptions()Creates options with every property at its default; set the properties with an object initializer.

VerifySessionOptions()#

public VerifySessionOptions()

Creates options with every property at its default; set the properties with an object initializer.

Properties#

MemberDescription
GitHubThe GitHub login that receives sponsorships.
OpenCollectiveThe Open Collective slug that receives contributions.
ApiBaseUrlThe Sponsorkit API origin.
HttpClientThe HTTP client to use.
RequestTimeoutThe HTTP request timeout.

GitHub#

public string? GitHub { get; set; }

The GitHub login that receives sponsorships.

Type: string?

OpenCollective#

public string? OpenCollective { get; set; }

The Open Collective slug that receives contributions.

Type: string?

ApiBaseUrl#

public string? ApiBaseUrl { get; set; }

The Sponsorkit API origin. Default https://api.sponsorkit.io.

Type: string?

HttpClient#

public HttpClient? HttpClient { get; set; }

The HTTP client to use. Default: a shared internal client.

Type: HttpClient?

RequestTimeout#

public TimeSpan RequestTimeout { get; set; } = TimeSpan.FromSeconds(30);

The HTTP request timeout. Default 30 seconds; TimeSpan.Zero (or Timeout.InfiniteTimeSpan) disables it. A timeout throws network_error; negative values throw invalid_config.

Type: TimeSpan · Default: TimeSpan.FromSeconds(30)