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 VerifySessionOptionsConstructors#
| Member | Description |
|---|---|
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#
| Member | Description |
|---|---|
GitHub | The GitHub login that receives sponsorships. |
OpenCollective | The Open Collective slug that receives contributions. |
ApiBaseUrl | The Sponsorkit API origin. |
HttpClient | The HTTP client to use. |
RequestTimeout | The 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)